/* ========================================
   AUTH PAGES — Login, Signup, Forgot Password
   Matches Fluorite store / panel design system
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
}

.auth-back {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(20, 20, 23, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.auth-back:hover {
    color: var(--text-main);
    border-color: var(--border-color);
    background: var(--bg-elevated);
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.auth-brand {
    position: relative;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(145deg, rgba(128, 90, 213, 0.18) 0%, transparent 55%),
        linear-gradient(220deg, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        var(--bg-elevated);
    border-right: 1px solid var(--border-subtle);
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.auth-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    text-decoration: none;
    color: inherit;
}

.auth-brand-logo img {
    height: 44px;
    width: auto;
    border-radius: 10px;
}

.auth-brand-logo span {
    font-size: 1.25rem;
    font-weight: 700;
}

.auth-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    width: fit-content;
}

.auth-brand h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-brand-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 320px;
}

.auth-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-panel {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-header {
    margin-bottom: 28px;
}

.auth-panel-header h2 {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.auth-panel-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.auth-form .form-input,
.auth-form .glass-input {
    width: 100%;
}

.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    font-size: 15px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--accent);
}

.auth-footer p + p {
    margin-top: 8px;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.auth-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.auth-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.auth-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}

.auth-otp-input {
    text-align: center;
    font-size: 26px !important;
    letter-spacing: 10px;
    font-weight: 700;
}

.auth-otp-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin: 12px 0 20px;
    line-height: 1.5;
}

.auth-password-reqs {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    font-size: 12px;
}

.auth-password-reqs > p {
    margin: 0 0 8px;
    font-weight: 600;
    font-size: 13px;
}

.auth-password-reqs ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
}

.auth-password-reqs li {
    margin-bottom: 4px;
}

.auth-strength-bar {
    margin-top: 8px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-subtle);
    overflow: hidden;
}

.auth-strength-bar > div {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
}

.auth-strength-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

.auth-mobile-logo {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.auth-mobile-logo img {
    height: 36px;
    border-radius: 8px;
}

.auth-mobile-logo span {
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 440px;
        min-height: auto;
    }

    .auth-brand {
        display: none;
    }

    .auth-panel {
        padding: 32px 24px;
    }

    .auth-mobile-logo {
        display: flex;
    }

    .auth-form-row {
        grid-template-columns: 1fr;
    }

    .auth-back {
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

.auth-google-wrap {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-google-note {
    padding: 10px 12px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    font-size: 12px;
    line-height: 1.5;
}

.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: #1f1f1f;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.auth-google-btn-alt {
    background: var(--bg-elevated);
    color: var(--text-main);
    border-color: var(--border-color);
}

.auth-google-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    color: #111;
}

.auth-google-btn-alt:hover {
    color: var(--text-main);
    border-color: var(--primary);
    background: var(--primary-light);
}

.auth-google-btn.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-google-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0 1.25rem;
    color: var(--text-subtle);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    flex-shrink: 0;
}

.auth-google-btn-text {
    text-align: left;
    line-height: 1.35;
}

.auth-google-btn-text strong {
    font-weight: 700;
    color: inherit;
}

.auth-google-btn-app {
    background: linear-gradient(135deg, rgba(128, 90, 213, 0.15), rgba(99, 102, 241, 0.1));
    border-color: rgba(128, 90, 213, 0.45);
}

.auth-google-note {
    margin: 0 0 0.5rem;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.auth-stay-signed {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1rem;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-stay-signed input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
