:root {
    --primary-color: #7aa250;
    --primary-gradient-start: #7aa250;
    --primary-gradient-end: #9cc56f; /* Sedikit lebih cerah untuk gradasi */
    --primary-hover: #658a40; /* Versi lebih gelap untuk hover */
    --bg-gradient-start: #f4f7f2;
    --bg-gradient-end: #e6ebe0;
}

body {
    font-family: 'Manrope', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 2rem 0;
    color: #4a5568;
}

.auth-container {
    max-width: 520px;
    margin: 0 auto;
}

.auth-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(122, 162, 80, 0.08); /* Shadow halus kehijauan */
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 15px 50px rgba(122, 162, 80, 0.15);
}

.auth-header {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.auth-logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 24px; /* Sedikit lebih kotak (squircle) agar modern */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-logo i {
    font-size: 1.75rem;
    color: white;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 0;
}

.auth-body {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fdfdfd;
    font-family: 'Manrope', sans-serif;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(122, 162, 80, 0.15);
    background: white;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 3rem;
}

.input-group-text {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: color 0.2s;
}

.input-group-text:hover {
    color: var(--primary-color);
}

.btn-auth {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    border: none;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 12px; /* Konsisten dengan input */
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.btn-auth:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(122, 162, 80, 0.3);
    color: white;
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    background: #cbd5e0;
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
}

.social-login {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    background: white;
    color: #4a5568;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-social:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fafff5; /* Background sangat muda saat hover */
    transform: translateY(-1px);
}

.btn-social i {
    margin-right: 0.5rem;
}

.form-check {
    margin-bottom: 1.5rem;
    padding-left: 1.7rem;
}

.form-check-input {
    border: 2px solid #cbd5e0;
    border-radius: 5px;
    width: 1.1em;
    height: 1.1em;
    margin-left: -1.7rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(122, 162, 80, 0.15);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    padding-top: 2px;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-check-label a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem 2rem;
    background: #fafbfc;
    border-top: 1px solid #f1f5f9;
}

.auth-switch {
    font-size: 0.95rem;
    color: #718096;
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.3rem;
}

.auth-switch a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.forgot-password {
    text-align: center;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.forgot-password a:hover {
    color: var(--primary-hover);
}

.alert-custom {
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.alert-success {
    background: rgba(122, 162, 80, 0.15);
    color: #4c6b2f;
}

.alert-danger {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.password-strength {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
}


@media (max-width: 576px) {
    body {
        padding: 1rem;
    }

    .auth-header {
        padding: 2rem 1.5rem;
    }

    .auth-body {
        padding: 1.5rem;
    }

    .auth-footer {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .social-login {
        flex-direction: column;
    }
}

.form-hidden {
    display: none;
}