/* login.css - Tambahkan styles ini */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

/* Top Navigation */
.top-nav {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-icon {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #0891b2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.brand-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    letter-spacing: 0.5px;
}

.btn-home {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
    background: linear-gradient(135deg, #0e7490, #0891b2);
}

.btn-home svg {
    flex-shrink: 0;
}

/* Login Container */
.login-container {
    flex: 1;
    width: 100%;
    max-width: 450px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.login-box {
    background: white;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    width: 100%;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #1e293b;
    font-size: 1.8rem;
}

.subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* Form Styles */
form {
    margin-top: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9fafb;
    margin-bottom: 20px;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    background: white;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.password-wrapper input {
    padding-right: 45px;
    margin-bottom: 0;
}

.toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    user-select: none;
    transition: color 0.3s ease;
}

.toggle:hover {
    color: #0891b2;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.btn-login:hover {
    background: linear-gradient(135deg, #0e7490, #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Footer Text */
.footer-text {
    text-align: center;
    margin-top: 25px;
    color: #6b7280;
    font-size: 14px;
}

.footer-text a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #0e7490;
    text-decoration: underline;
}

/* ====== NOTIFIKASI ERROR YANG DIPERBAIKI ====== */

/* Notifikasi Error Utama */
.error-notification {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 2px solid #fc8181;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    animation: errorSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 15px rgba(248, 113, 113, 0.15);
}

.error-notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to bottom, #f56565, #c53030);
    border-radius: 12px 0 0 12px;
}

.error-notification::after {
    content: '!';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f56565;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(245, 101, 101, 0.3);
}

.error-notification-content {
    padding-right: 40px;
}

.error-title {
    color: #c53030;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-title::before {
    content: '⚠️';
    font-size: 18px;
}

.error-message {
    color: #742a2a;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Animasi untuk notifikasi error */
@keyframes errorSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseError {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 101, 101, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 101, 101, 0);
    }
}

/* Tipe error spesifik */
.error-nik-not-found {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border-color: #f56565;
}

.error-nik-not-found::before {
    background: linear-gradient(to bottom, #f56565, #c53030);
}

.error-nik-not-found::after {
    background: #f56565;
    content: '🔍';
}

.error-password-wrong {
    background: linear-gradient(135deg, #fff5f5, #ffecec);
    border-color: #ed8936;
}

.error-password-wrong::before {
    background: linear-gradient(to bottom, #ed8936, #c05621);
}

.error-password-wrong::after {
    background: #ed8936;
    content: '🔒';
}

/* Validation Error Styles */
.validation-error {
    color: #e53e3e;
    font-size: 13px;
    margin-top: -15px;
    margin-bottom: 15px;
    padding-left: 2px;
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

input.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
    animation: pulseError 0.6s ease;
}

/* Suggestion box untuk NIK tidak ditemukan */
.suggestion-box {
    background: #ebf8ff;
    border: 1px solid #90cdf4;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    font-size: 14px;
    color: #2c5282;
}

.suggestion-box strong {
    color: #2b6cb0;
}

.suggestion-box ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.suggestion-box li {
    margin-bottom: 5px;
}

.suggestion-box a {
    color: #3182ce;
    text-decoration: none;
    font-weight: 600;
}

.suggestion-box a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        gap: 15px;
        padding: 1rem;
        text-align: center;
    }

    .brand-icon {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .btn-home {
        width: 100%;
        justify-content: center;
    }

    .login-container {
        padding: 15px;
    }

    .login-box {
        padding: 25px 20px;
    }

    h2 {
        font-size: 1.6rem;
    }

    .error-notification {
        padding: 15px 18px;
    }

    .error-notification::after {
        right: 15px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px 15px;
    }

    .btn-login {
        padding: 12px;
    }

    input[type="text"],
    input[type="password"] {
        padding: 10px 14px;
    }

    .error-notification-content {
        padding-right: 35px;
    }
}

/* CSS untuk gambar ADD dan LINE */
        .logo-images-container {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            align-items: center;
        }
        
        .logo-image {
            width: 120px;
            height: 120px;
            object-fit: contain;
            transition: transform 0.3s ease;
        }
        
        .logo-image:hover {
            transform: scale(1.05);
        }
        
        /* Responsive design */
        @media (max-width: 768px) {
            .logo-images-container {
                gap: 20px;
            }
            
            .logo-image {
                width: 100px;
                height: 100px;
            }
        }
        
        @media (max-width: 576px) {
            .logo-images-container {
                gap: 15px;
            }
            
            .logo-image {
                width: 90px;
                height: 90px;
            }
        }
        
        @media (max-width: 400px) {
            .logo-images-container {
                gap: 10px;
            }
            
            .logo-image {
                width: 80px;
                height: 80px;
            }
        }