body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--card);
    box-shadow: 0 1px 3px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.theme-toggle:hover, .theme-toggle:focus {
    background-color: var(--light-blue);
    color: var(--primary);
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: calc(100vh - 70px);
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-card {
    background-color: var(--card);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 28px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--text);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Container untuk form */
.auth-forms-container {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

/* Style untuk form */
.auth-form {
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    font-size: 15px;
}

.auth-form input:focus {
    border-color: var(--primary);
}


.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    border: none;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: auto;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
}

.forgot-password:hover, .forgot-password:focus {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: none;
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.2s;
}

.auth-btn:hover, .auth-btn:focus {
    background-color: var(--dark-blue);
}

.social-login {
    margin-bottom: 20px;
}

.social-login p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--border);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background-color: var(--bg);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover, .social-btn:focus {
    background-color: var(--light-blue);
    border-color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover, .auth-footer a:focus {
    text-decoration: underline;
}

/* Tab styling */
.auth-tabs {
    display: flex;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
    background-color: var(--card);
    border: none;
    border-bottom: 1px solid var(--border);
}

.auth-tab.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.auth-tab:hover {
    background-color: var(--light-blue);
}

/* Footer */
footer {
    background-color: var(--card);
    color: var(--text);
    padding: 20px 0;
    margin-top: auto;
    border-top: 0px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover, .footer-links a:focus {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .social-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-tabs {
        margin-bottom: 20px;
    }
    
    .auth-tab {
        padding: 10px;
        font-size: 14px;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.code-input-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}
.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg);
    color: var(--text);
    transition: all 0.2s;
    text-transform: uppercase;
}
.code-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(94, 86, 255, 0.1);
    outline: none;
}
.code-input.filled {
    border-color: var(--primary);
}
.resend-code {
    text-align: center;
    margin-bottom: 25px;
    font-size: 14px;
}
.resend-code p {
    margin-bottom: 5px;
    color: var(--text-secondary);
}
.countdown {
    color: var(--primary);
    font-weight: 500;
}
@media (max-width: 480px) {
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }
    
    .code-input-container {
        gap: 8px;
    }
}
/* Animation for success state */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake {
    animation: shake 0.6s cubic-bezier(.36,.07,.19,.97) both;
    border-color: #dc3545 !important;
}


.password-strength {
    margin-top: 10px;
}
.strength-meter {
    width: 100%;
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}
.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}
.strength-bar.weak {
    width: 33%;
    background-color: #dc3545;
}
.strength-bar.medium {
    width: 66%;
    background-color: #ffc107;
}
.strength-bar.strong {
    width: 100%;
    background-color: #28a745;
}
.strength-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
#strength-value {
    font-weight: 600;
}
.validation-message {
    font-size: 13px;
    margin-top: 5px;
    min-height: 20px;
}
.validation-message.error {
    color: #dc3545;
}
.validation-message.success {
    color: #28a745;
}