/* LOGIN PAGE STYLES */
.login-container {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #f9fdfb 100%);
}

.login-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 420px;
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.login-header {
    background: linear-gradient(135deg, var(--hijau-utama) 0%, var(--hijau-tua) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: float 20s linear infinite;
}

.login-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.login-header p {
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.login-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--hijau-tua);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
    color: var(--abu-gelap);
}

.form-control:focus {
    outline: none;
    border-color: var(--hijau-utama);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.form-control.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.form-control.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* INPUT WITH LEFT ICON */
.input-with-icon {
    position: relative;
}

.input-with-icon i:first-child {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s;
}

.input-with-icon input {
    padding-left: 2.75rem;
}

.input-with-icon input:focus+i:first-child {
    color: var(--hijau-utama);
}

.btn-login {
    background: linear-gradient(135deg, var(--hijau-utama) 0%, var(--hijau-tua) 100%);
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-footer p {
    color: var(--abu);
    margin-bottom: 1rem;
}

.btn-register {
    background: transparent;
    color: var(--hijau-utama);
    border: 2px solid var(--hijau-utama);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-register:hover {
    background: var(--hijau-utama);
    color: white;
    transform: translateY(-2px);
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 2px solid #fca5a5;
    animation: slideIn 0.3s ease-out;
}

.alert-danger i {
    color: #dc2626;
    margin-right: 0.5rem;
}

@keyframes float {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem 1rem;
        min-height: calc(100vh - 300px);
    }

    .login-card {
        max-width: 100%;
    }

    .login-body {
        padding: 1.5rem;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }

    .login-header {
        padding: 1.5rem;
    }

    .form-control {
        padding: 0.75rem;
    }

    .btn-login {
        padding: 0.875rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }

    .login-body {
        padding: 1.25rem;
    }

    .input-with-icon input {
        padding-left: 2.5rem;
    }

    .login-footer p {
        font-size: 0.875rem;
    }

    .btn-register {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}