/**
 * Authentication Pages Styling - Oddspedia Light Theme
 *
 * Modern, clean light theme with cyan/blue accents
 * Mobile-first responsive design with professional appearance
 * Tabbed layout support for Sign in / Sign up
 */

/* ===== Root & Color Variables ===== */
:root {
    /* Colors - Light Theme */
    --auth-bg-primary: #f5f7fa;
    --auth-bg-secondary: #e8ecf1;
    --auth-surface: #ffffff;
    --auth-border-light: #e0e4e8;
    --auth-border-medium: #d0d6dd;
    --auth-text-primary: #1a1f2e;
    --auth-text-secondary: #4a5568;
    --auth-text-muted: #8b92a3;

    /* Brand & Accent Colors */
    --auth-primary: #3b82f6;          /* Brand blue */
    --auth-primary-hover: #2563eb;
    --auth-primary-active: #1d4ed8;
    --auth-secondary: #00bcd4;        /* Cyan accent */
    --auth-secondary-hover: #00a8cc;
    --auth-secondary-light: #b3e5fc;

    /* Status Colors */
    --auth-error: #dc3545;
    --auth-error-light: #ffe5e5;
    --auth-success: #10b981;
    --auth-success-light: #d1fae5;
    --auth-warning: #f59e0b;
    --auth-warning-light: #fef3c7;

    /* Social Colors */
    --auth-facebook: #1877f2;
    --auth-google: #ffffff;
    --auth-google-border: #dadce0;

    /* Spacing */
    --auth-spacing-xs: 0.25rem;
    --auth-spacing-sm: 0.5rem;
    --auth-spacing-md: 1rem;
    --auth-spacing-lg: 1.5rem;
    --auth-spacing-xl: 2rem;
    --auth-spacing-2xl: 3rem;

    /* Border Radius */
    --auth-radius-sm: 4px;
    --auth-radius-md: 8px;
    --auth-radius-lg: 12px;
    --auth-radius-full: 9999px;

    /* Transitions */
    --auth-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --auth-transition-fast: 75ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --auth-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --auth-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --auth-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --auth-shadow-xl: 0 15px 35px rgba(0, 0, 0, 0.18);
}

/* ===== Page Layout ===== */
.auth-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--auth-text-primary);
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: var(--auth-spacing-md);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .auth-container {
        padding: var(--auth-spacing-sm);
    }
}

/* ===== Auth Card ===== */
.auth-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border-light);
    border-radius: var(--auth-radius-lg);
    padding: var(--auth-spacing-2xl);
    box-shadow: var(--auth-shadow-lg);
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .auth-card {
        padding: var(--auth-spacing-xl);
        border-radius: var(--auth-radius-md);
    }
}

/* ===== Logo Section ===== */
.auth-logo {
    text-align: center;
    margin-bottom: var(--auth-spacing-2xl);
    padding-bottom: var(--auth-spacing-xl);
    border-bottom: 1px solid var(--auth-border-light);
}

.auth-logo a {
    display: inline-block;
    color: var(--auth-primary);
    text-decoration: none;
    transition: opacity var(--auth-transition);
}

.auth-logo a:hover {
    opacity: 0.85;
}

.auth-logo img {
    display: block;
    max-width: 180px;
    height: auto;
}

/* ===== Typography ===== */
.auth-title {
    margin: 0 0 var(--auth-spacing-sm) 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a237e;
    letter-spacing: -0.3px;
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 22px;
    }
}

.auth-subtitle {
    margin: 0 0 var(--auth-spacing-xl) 0;
    font-size: 14px;
    color: var(--auth-text-secondary);
    line-height: 1.5;
    font-weight: 400;
}

.auth-greeting {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 800;
    font-style: italic;
    color: #1a237e;
    text-align: center;
    line-height: 1.2;
}

/* ===== Tabs (Sign in / Sign up) ===== */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--auth-spacing-2xl);
    border-bottom: 2px solid var(--auth-border-light);
}

.auth-tab {
    flex: 1;
    padding: var(--auth-spacing-md) var(--auth-spacing-lg);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-text-muted);
    cursor: pointer;
    transition: all var(--auth-transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    background: transparent;
    border: none;
    position: relative;
    white-space: nowrap;
}

.auth-tab:hover:not(.active) {
    color: var(--auth-text-secondary);
}

.auth-tab.active {
    color: var(--auth-primary);
    border-bottom-color: var(--auth-primary);
}

@media (max-width: 480px) {
    .auth-tab {
        padding: var(--auth-spacing-md);
        font-size: 13px;
    }
}

/* ===== Form Wrapper ===== */
.auth-form-wrapper {
    width: 100%;
}

/* ===== Form Groups ===== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--auth-spacing-lg);
    margin-bottom: var(--auth-spacing-xl);
}

.auth-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--auth-spacing-xs);
}

/* ===== Labels ===== */
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text-primary);
    margin-bottom: var(--auth-spacing-xs);
    text-transform: none;
    letter-spacing: 0;
}

/* ===== Inputs ===== */
.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 var(--auth-spacing-md);
    background: #f8fafc;
    border: 1.5px solid var(--auth-border-light);
    border-radius: var(--auth-radius-md);
    font-size: 16px;
    color: var(--auth-text-primary);
    font-family: inherit;
    transition: all var(--auth-transition);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.auth-input::placeholder {
    color: var(--auth-text-muted);
}

.auth-input:hover {
    border-color: var(--auth-border-medium);
    background: #ffffff;
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-secondary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.auth-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--auth-bg-secondary);
}

/* Autofill styling */
.auth-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset;
    -webkit-text-fill-color: var(--auth-text-primary);
    -webkit-transition: background-color 5000s ease-in-out 0s;
}

.auth-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(0, 188, 212, 0.1);
    -webkit-text-fill-color: var(--auth-text-primary);
}

/* ===== Password Input Wrapper ===== */
.auth-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-password-wrapper .auth-input {
    padding-right: 44px;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-text-muted);
    transition: color var(--auth-transition);
    font-size: 18px;
    padding: 0;
    margin: auto;
}

.auth-password-toggle:hover {
    color: var(--auth-primary);
}

.auth-password-toggle:focus {
    outline: none;
    color: var(--auth-secondary);
}

.toggle-icon {
    display: block;
}

/* ===== Buttons ===== */
.auth-btn {
    width: 100%;
    height: 44px;
    padding: 0 var(--auth-spacing-lg);
    background: var(--auth-primary);
    border: none;
    border-radius: var(--auth-radius-md);
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--auth-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--auth-spacing-sm);
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.auth-btn:hover:not(:disabled) {
    background: var(--auth-primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.auth-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.auth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-btn-loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-loader {
    font-size: 16px;
    animation: spin 1s linear infinite;
}

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

/* ===== Social Login Buttons ===== */
.auth-social-row {
    display: flex;
    gap: var(--auth-spacing-md);
    margin-top: var(--auth-spacing-lg);
    margin-bottom: var(--auth-spacing-lg);
}

.auth-social-btn {
    flex: 1;
    height: 44px;
    padding: 0;
    border: 1.5px solid var(--auth-border-light);
    border-radius: var(--auth-radius-md);
    background: white;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--auth-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--auth-spacing-sm);
    font-family: inherit;
    color: var(--auth-text-primary);
    font-weight: 500;
}

.auth-social-btn:hover {
    border-color: var(--auth-border-medium);
    background: var(--auth-bg-primary);
    box-shadow: var(--auth-shadow-sm);
}

.auth-social-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.auth-social-btn.facebook {
    color: var(--auth-facebook);
}

.auth-social-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.05);
}

.auth-social-btn.google {
    color: var(--auth-text-primary);
}

.auth-social-btn.google:hover {
    background: var(--auth-bg-primary);
}

/* ===== Checkboxes ===== */
.auth-checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--auth-spacing-md);
    margin: var(--auth-spacing-md) 0;
}

.auth-checkbox {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: white;
    border: 1.5px solid var(--auth-border-medium);
    border-radius: 4px;
    transition: all var(--auth-transition);
}

.auth-checkbox:hover {
    border-color: var(--auth-secondary);
    box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.1);
}

.auth-checkbox:checked {
    background: var(--auth-secondary);
    border-color: var(--auth-secondary);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-size: 100% 100%;
    background-position: 50%;
    background-repeat: no-repeat;
}

.auth-checkbox:checked:hover {
    background-color: var(--auth-secondary-hover);
    border-color: var(--auth-secondary-hover);
}

.auth-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.auth-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-checkbox-label {
    flex: 1;
    font-size: 14px;
    color: var(--auth-text-secondary);
    cursor: pointer;
    line-height: 1.5;
    margin: 0;
}

.auth-checkbox-label a {
    color: var(--auth-primary);
    text-decoration: none;
    transition: color var(--auth-transition);
    font-weight: 500;
}

.auth-checkbox-label a:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* ===== Password Strength Bar ===== */
.password-strength {
    margin-top: var(--auth-spacing-md);
}

.password-strength-bar {
    width: 100%;
    height: 4px;
    background: var(--auth-border-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--auth-spacing-xs);
}

.password-strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: #cbd5e1;
    border-radius: 2px;
    transition: width var(--auth-transition), background-color var(--auth-transition);
}

/* Strength levels */
.strength-weak .password-strength-bar::after {
    width: 33%;
    background: #ef4444;
}

.strength-medium .password-strength-bar::after {
    width: 66%;
    background: #f59e0b;
}

.strength-strong .password-strength-bar::after {
    width: 100%;
    background: #10b981;
}

.password-strength-text {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--auth-text-muted);
}

.strength-weak .password-strength-text {
    color: #ef4444;
}

.strength-medium .password-strength-text {
    color: #f59e0b;
}

.strength-strong .password-strength-text {
    color: #10b981;
}

/* ===== Nickname Availability Status ===== */
.nickname-status {
    display: inline-block;
    font-size: 12px;
    height: 16px;
    margin-top: var(--auth-spacing-xs);
    color: var(--auth-text-muted);
}

.nickname-status.available {
    color: var(--auth-success);
}

.nickname-status.taken {
    color: var(--auth-error);
}

.nickname-status.checking {
    color: var(--auth-warning);
}

/* ===== Error & Success Messages ===== */
.auth-error {
    padding: var(--auth-spacing-md);
    background: var(--auth-error-light);
    border: 1px solid #f8b4b4;
    border-radius: var(--auth-radius-md);
    color: #c41c3b;
    font-size: 14px;
    margin-bottom: var(--auth-spacing-lg);
    animation: slideDown 300ms ease-out;
}

.auth-error p {
    margin: 0;
}

.auth-error h3 {
    margin: 0 0 var(--auth-spacing-xs) 0;
    color: #a01828;
    font-size: 15px;
    font-weight: 600;
}

.auth-success {
    padding: var(--auth-spacing-md);
    background: var(--auth-success-light);
    border: 1px solid #86efac;
    border-radius: var(--auth-radius-md);
    color: #065f46;
    font-size: 14px;
    margin-bottom: var(--auth-spacing-lg);
    animation: slideDown 300ms ease-out;
}

.auth-success p {
    margin: 0 0 var(--auth-spacing-sm) 0;
}

.auth-success h3 {
    margin: 0 0 var(--auth-spacing-sm) 0;
    color: #047857;
    font-size: 15px;
    font-weight: 600;
}

.auth-success-footer {
    margin-top: var(--auth-spacing-md);
    padding-top: var(--auth-spacing-md);
    border-top: 1px solid #a7f3d0;
}

.auth-error-text {
    display: block;
    font-size: 12px;
    color: var(--auth-error);
    margin-top: 2px;
    animation: slideDown 200ms ease-out;
}

.auth-error-text:empty {
    display: none;
}

/* ===== Links ===== */
.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--auth-transition);
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

.auth-link:focus {
    outline: 2px solid var(--auth-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.auth-link-primary {
    font-weight: 600;
    color: var(--auth-primary);
}

.auth-link-primary:hover {
    color: var(--auth-primary-hover);
}

/* ===== Form Footer ===== */
.auth-form-footer {
    text-align: center;
    margin-bottom: var(--auth-spacing-lg);
}

.auth-form-footer p {
    margin: 0 0 var(--auth-spacing-sm) 0;
    font-size: 14px;
    color: var(--auth-text-secondary);
}

.auth-form-footer a {
    display: inline-block;
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--auth-transition);
}

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

/* ===== Divider ===== */
.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--auth-spacing-xl) 0;
    font-size: 12px;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--auth-border-light);
    z-index: 0;
}

.auth-divider {
    position: relative;
    z-index: 1;
    background: var(--auth-surface);
    padding: 0 var(--auth-spacing-md);
}

.auth-divider::before {
    z-index: 0;
}

/* ===== Footer (see enhanced version in Additional Components) ===== */

/* ===== Loading Spinner ===== */
.auth-loading {
    text-align: center;
    padding: var(--auth-spacing-2xl);
}

.spinner {
    display: inline-block;
    font-size: 40px;
    animation: spin 2s linear infinite;
    color: var(--auth-primary);
}

/* ===== Animations ===== */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: more) {
    .auth-input,
    .auth-checkbox {
        border-width: 2px;
    }

    .auth-btn {
        font-weight: 700;
    }

    .auth-label {
        font-weight: 700;
    }
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 640px) {
    .auth-input,
    .auth-btn,
    .auth-social-btn {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .auth-card {
        box-shadow: var(--auth-shadow-md);
        border-radius: var(--auth-radius-md);
    }

    .auth-social-row {
        gap: var(--auth-spacing-sm);
    }

    .auth-tabs {
        margin-bottom: var(--auth-spacing-xl);
    }

    .auth-tab {
        font-size: 12px;
        padding: var(--auth-spacing-sm) var(--auth-spacing-md);
    }
}

/* ===== iPad/Tablet Optimization ===== */
@media (max-width: 768px) and (min-width: 481px) {
    .auth-container {
        max-width: 420px;
    }
}

/* ===== Wide Screen Optimization ===== */
@media (min-width: 1024px) {
    .auth-card {
        box-shadow: var(--auth-shadow-xl);
    }

    .auth-btn:hover:not(:disabled) {
        transform: translateY(-2px);
    }
}

/* ===== Additional Components ===== */

/* Label row (label + forgot password link side by side) */
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.auth-forgot-link {
    font-size: 13px;
    color: var(--auth-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--auth-transition);
}
.auth-forgot-link:hover {
    color: var(--auth-secondary-hover);
}

/* Switch link row (bottom of form) */
.auth-switch {
    text-align: center;
    margin-top: var(--auth-spacing-lg);
    font-size: 14px;
    color: var(--auth-text-secondary);
}
.auth-switch-link {
    color: var(--auth-secondary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color var(--auth-transition);
}
.auth-switch-link:hover {
    color: var(--auth-secondary-hover);
}

/* Field hint (below input) */
.auth-field-hint {
    display: block;
    font-size: 12px;
    color: var(--auth-text-muted);
    margin-top: 4px;
}

/* Input with status indicator (nickname check) */
.auth-input-with-status {
    position: relative;
}
.auth-input-with-status .auth-input {
    padding-right: 40px;
}
.auth-input-with-status .nickname-status {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

/* Spinner */
.auth-spinner {
    animation: auth-spin 1s linear infinite;
}
@keyframes auth-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.auth-spinner-mini {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--auth-border-light);
    border-top-color: var(--auth-secondary);
    border-radius: 50%;
    animation: auth-spin 0.6s linear infinite;
}

/* Custom checkbox */
.auth-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--auth-text-secondary);
    line-height: 1.5;
}
.auth-checkbox-wrap .auth-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.auth-checkmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--auth-border-medium);
    border-radius: 4px;
    background: var(--auth-surface);
    transition: all var(--auth-transition);
    margin-top: 1px;
}
.auth-checkbox:checked + .auth-checkmark {
    background: var(--auth-secondary);
    border-color: var(--auth-secondary);
}
.auth-checkbox:checked + .auth-checkmark::after {
    content: '';
    display: block;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.auth-checkbox-wrap .auth-checkbox-label {
    flex: 1;
}
.auth-checkbox-wrap .auth-checkbox-label a {
    color: var(--auth-secondary);
    text-decoration: none;
    font-weight: 500;
}
.auth-checkbox-wrap .auth-checkbox-label a:hover {
    text-decoration: underline;
}

/* Input error state */
.auth-input-error {
    border-color: var(--auth-error) !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Footer links */
.auth-footer {
    text-align: center;
    margin-top: var(--auth-spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.auth-footer a {
    font-size: 12px;
    color: var(--auth-text-muted);
    text-decoration: none;
    transition: color var(--auth-transition);
}
.auth-footer a:hover {
    color: var(--auth-text-primary);
}
.auth-footer-sep {
    font-size: 12px;
    color: var(--auth-text-muted);
}

/* Nickname status indicators */
.nickname-status.available svg { color: var(--auth-success); }
.nickname-status.taken span { color: var(--auth-error); }
.nickname-status.checking { color: var(--auth-text-muted); }

/* Password strength bar */
.password-strength {
    height: 4px;
    background: var(--auth-border-light);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.password-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
    background-color: var(--auth-error);
}
.password-strength.strength-weak .password-strength-bar { background-color: var(--auth-error); }
.password-strength.strength-medium .password-strength-bar { background-color: var(--auth-warning); }
.password-strength.strength-strong .password-strength-bar { background-color: var(--auth-success); }

.password-strength-text {
    font-size: 11px;
    margin-top: 4px;
    display: block;
    color: var(--auth-text-muted);
}
.strength-weak .password-strength-text { color: var(--auth-error); }
.strength-medium .password-strength-text { color: var(--auth-warning); }
.strength-strong .password-strength-text { color: var(--auth-success); }

/* Form group focus effect */
.auth-form-group.focused .auth-label {
    color: var(--auth-secondary);
}

/* (auth-greeting defined above) */
