/* ==================== AUTH PAGE LAYOUT ==================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(229, 57, 53, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 150, 136, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: authBgRotate 60s linear infinite;
    pointer-events: none;
}

@keyframes authBgRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== AUTH CONTAINER ==================== */
.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-section);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

/* ==================== AUTH HEADER ==================== */
.auth-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.auth-logo svg {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.auth-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    font-size: var(--text-sm);
    color: var(--text-dim);
}

/* ==================== AUTH FORM ==================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form .form-group {
    margin-bottom: 0;
}

.auth-form .form-input {
    background: var(--bg-dark);
}

.auth-form .form-input:focus {
    background: var(--bg-input);
}

/* Remember Me & Forgot Password */
.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-xs);
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--fitness-teal);
}

.auth-remember label {
    font-size: var(--text-sm);
    color: var(--text-gray);
    cursor: pointer;
}

.auth-forgot {
    font-size: var(--text-sm);
    color: var(--fitness-teal);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-forgot:hover {
    color: var(--fitness-teal-hover);
    text-decoration: underline;
}

/* Submit Button */
.auth-submit {
    margin-top: var(--space-md);
}

.auth-submit .btn {
    width: 100%;
    padding: 1rem;
    font-size: var(--text-base);
}

/* ==================== AUTH DIVIDER ==================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-default);
}

.auth-divider span {
    font-size: var(--text-xs);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==================== SOCIAL LOGIN ==================== */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-social-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-social-btn.google:hover {
    border-color: #DB4437;
}

.auth-social-btn.apple:hover {
    border-color: #FFFFFF;
}

.auth-social-btn.facebook:hover {
    border-color: #1877F2;
}

/* ==================== AUTH FOOTER ==================== */
.auth-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-default);
}

.auth-footer p {
    font-size: var(--text-sm);
    color: var(--text-dim);
}

.auth-footer a {
    color: var(--fitness-teal);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--fitness-teal-hover);
    text-decoration: underline;
}

/* ==================== AUTH MESSAGES ==================== */
.auth-message {
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.auth-message-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.auth-message-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.auth-message-error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid var(--error);
}

.auth-message-warning {
    background: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.auth-message-info {
    background: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

/* ==================== PASSWORD STRENGTH ==================== */
.password-strength {
    margin-top: var(--space-xs);
}

.password-strength-bar {
    height: 4px;
    background: var(--bg-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.password-strength-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
}

.password-strength-fill.weak {
    width: 25%;
    background: var(--error);
}

.password-strength-fill.fair {
    width: 50%;
    background: var(--warning);
}

.password-strength-fill.good {
    width: 75%;
    background: var(--ai-gold);
}

.password-strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.password-strength-text {
    font-size: var(--text-xs);
    color: var(--text-dim);
}

.password-strength-text.weak { color: var(--error); }
.password-strength-text.fair { color: var(--warning); }
.password-strength-text.good { color: var(--ai-gold); }
.password-strength-text.strong { color: var(--success); }

/* ==================== AUTH TABS ==================== */
.auth-tabs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
}

.auth-tab {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.auth-tab:hover {
    color: var(--text-white);
}

.auth-tab.active {
    background: var(--bg-section);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

/* ==================== VERIFICATION CODE INPUT ==================== */
.verification-inputs {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.verification-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 600;
    background: var(--bg-dark);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-white);
    transition: all var(--transition-fast);
}

.verification-input:focus {
    outline: none;
    border-color: var(--fitness-teal);
    box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.15);
}

.verification-input.filled {
    border-color: var(--fitness-teal);
    background: var(--fitness-teal-light);
}

/* ==================== RESEND CODE ==================== */
.resend-code {
    text-align: center;
    margin-top: var(--space-md);
}

.resend-code-text {
    font-size: var(--text-sm);
    color: var(--text-dim);
}

.resend-code-btn {
    background: none;
    border: none;
    color: var(--fitness-teal);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.resend-code-btn:hover {
    color: var(--fitness-teal-hover);
    text-decoration: underline;
}

.resend-code-btn:disabled {
    color: var(--text-dim);
    cursor: not-allowed;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--space-lg);
    }

    .auth-title {
        font-size: var(--text-xl);
    }

    .auth-options {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }

    .verification-input {
        width: 44px;
        height: 54px;
        font-size: var(--text-xl);
    }
}
