/* ═══════════════════════════════════════════════════════════════════════════════
   EPISODE ONE — AUTH PAGES (LOGIN + SIGNUP)
   auth.css
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Page layout — split screen ──────────────────────────────────────────────── */
.auth-page {
    display: flex;
    min-height: calc(100vh - 90px);
    background: #111;
}

/* ── Left panel ──────────────────────────────────────────────────────────────── */
.auth-left {
    flex: 0 0 420px;
    background: #1a1a1a;
    border-right: 1px solid #242424;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8960C, #D4AF37, #E8C547);
}

.auth-left-inner {
    max-width: 320px;
}

.auth-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #D4AF37;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.auth-brand-tagline {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 32px;
}

.auth-left-divider {
    width: 32px;
    height: 1px;
    background: #D4AF37;
    margin-bottom: 28px;
}

.auth-left-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: #f0ece4;
    line-height: 1.5;
    margin-bottom: 24px;
    border: none;
    padding: 0;
}

.auth-left-sub {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    font-weight: 300;
}

.auth-left-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-left-features li {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #888;
    letter-spacing: 0.3px;
}

/* ── Right panel ─────────────────────────────────────────────────────────────── */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

/* ── Form header ─────────────────────────────────────────────────────────────── */
.auth-eyebrow {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #D4AF37;
    margin-bottom: 10px;
    display: block;
}

.auth-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 300;
    color: #f0ece4;
    line-height: 1.1;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}

.auth-subtitle a {
    color: #D4AF37;
    text-decoration: none;
}

.auth-subtitle a:hover {
    text-decoration: underline;
}

/* ── Form fields ─────────────────────────────────────────────────────────────── */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 8px;
}

.auth-field input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 2px;
    padding: 13px 16px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 14px;
    color: #f0ece4;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-field input:focus {
    border-color: #D4AF37;
}

.auth-field input::placeholder {
    color: #3a3a3a;
}

.auth-field-error {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #e07070;
    margin-top: 6px;
}

.auth-field-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
    margin-top: -8px;
}

.auth-forgot {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot:hover {
    color: #D4AF37;
}

/* ── Errors ──────────────────────────────────────────────────────────────────── */
.auth-errors {
    background: rgba(212, 60, 60, 0.08);
    border: 1px solid rgba(212, 60, 60, 0.3);
    border-radius: 2px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.auth-errors p {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #e07070;
    margin: 0;
}

/* ── Button ──────────────────────────────────────────────────────────────────── */
.auth-btn {
    width: 100%;
    background: #D4AF37;
    color: #1a1a1a;
    border: none;
    border-radius: 2px;
    padding: 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.auth-btn:hover {
    background: #e8c84a;
}

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: #242424;
}

.auth-divider-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #444;
    letter-spacing: 1px;
}

/* ── Footer links ────────────────────────────────────────────────────────────── */
.auth-signup-link,
.auth-login-link {
    text-align: center;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #666;
    margin-top: 16px;
}

.auth-signup-link a,
.auth-login-link a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
}

.auth-signup-link a:hover,
.auth-login-link a:hover {
    text-decoration: underline;
}

.auth-terms {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #444;
    text-align: center;
    margin-top: 12px;
    line-height: 1.6;
}

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-page {
        flex-direction: column;
    }

    .auth-left {
        flex: none;
        padding: 40px 32px;
        border-right: none;
        border-bottom: 1px solid #242424;
    }

    .auth-left-inner {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .auth-left-features {
        align-items: flex-start;
        text-align: left;
    }

    .auth-right {
        padding: 40px 24px;
    }

    .auth-form-wrap {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-left {
        padding: 32px 20px;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .auth-right {
        padding: 32px 20px;
    }
}
/* ── Password reset additions ────────────────────────────────────────────────── */
.auth-info-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 2px solid #D4AF37;
    padding: 20px 24px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-info-card-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
}

.auth-resend-btn {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4AF37;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 20px;
    display: inline-block;
    transition: border-color 0.2s, background 0.2s;
    align-self: flex-start;
}

.auth-resend-btn:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    color: #D4AF37;
}

.auth-bottom-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #1e1e1e;
}

.auth-back-link {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #888;
}

.auth-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-password-wrap input {
    flex: 1;
    padding-right: 60px;
}

.auth-password-toggle {
    position: absolute;
    right: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #555;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: #D4AF37;
}

.auth-password-rules {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #444;
    margin-bottom: 16px;
    font-style: italic;
}

/* ── Verification page ───────────────────────────────────────────────────────── */
.auth-verify-status {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 28px 24px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.auth-verify-icon {
    font-size: 24px;
    color: #D4AF37;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.auth-verify-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.auth-verify-bar {
    width: 100%;
    height: 2px;
    background: #2a2a2a;
    border-radius: 1px;
    overflow: hidden;
}

.auth-verify-fill {
    height: 100%;
    background: linear-gradient(90deg, #B8960C, #D4AF37);
    width: 0%;
    transition: width 1s linear;
}

.auth-verify-redirect {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #444;
}

/* ── Username checker ────────────────────────────────────────────────────────── */
.auth-username-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-username-wrap input {
    flex: 1;
    padding-right: 80px;
}

.auth-username-status {
    position: absolute;
    right: 12px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.auth-username-status.checking {
    color: #555;
    animation: status-pulse 1s infinite;
}

.auth-username-status.available {
    color: #6dba8a;
}

.auth-username-status.taken {
    color: #e07070;
}

@keyframes status-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ── Privacy stamp ───────────────────────────────────────────────────────────── */
.auth-privacy {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 20px 0;
}

.auth-privacy-stamp {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
    font-size: 16px;
}

.auth-privacy-stamp:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

.auth-privacy-stamp.stamped {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #111;
    animation: stamp-press 0.3s ease;
}

@keyframes stamp-press {
    0% { transform: scale(1); }
    50% { transform: scale(0.85); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.auth-privacy-stamp.shake {
    animation: shake 0.4s ease;
}

.auth-privacy-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
    padding-top: 6px;
}

.auth-privacy-text a {
    color: #D4AF37;
    text-decoration: none;
}

.auth-privacy-text a:hover {
    text-decoration: underline;
}

.auth-privacy-error {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #e07070;
    margin-bottom: 12px;
}


/* ── Input wrap ──────────────────────────────────────────────────────────────── */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap input {
    width: 100%;
    padding-right: 44px;
}

/* ── Eye toggle ──────────────────────────────────────────────────────────────── */
.auth-eye-toggle {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #444;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.auth-eye-toggle:hover {
    color: #888;
}

.auth-eye-toggle.active {
    color: #D4AF37;
}

/* ── Username status ─────────────────────────────────────────────────────────── */
.auth-username-status {
    position: absolute;
    right: 14px;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.auth-username-status.checking {
    color: #555;
    animation: status-pulse 1s infinite;
}

.auth-username-status.available {
    color: #6dba8a;
}

.auth-username-status.taken {
    color: #e07070;
}

@keyframes status-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ── Privacy stamp ───────────────────────────────────────────────────────────── */
.auth-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0 8px;
}

.auth-privacy-stamp {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: transparent;
    border: 1px solid #444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
    border-radius: 2px;
    padding: 0;
}

.auth-privacy-stamp:hover {
    border-color: #D4AF37;
}

.auth-privacy-stamp.stamped {
    background: #D4AF37;
    border-color: #D4AF37;
}

.auth-privacy-check {
    display: none;
    width: 10px;
    height: 6px;
    border-left: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(-45deg) translateY(-2px);
}

.auth-privacy-stamp.stamped .auth-privacy-check {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.auth-privacy-stamp.shake {
    animation: shake 0.4s ease;
}

.auth-privacy-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}

.auth-privacy-text a {
    color: #D4AF37;
    text-decoration: none;
}

.auth-privacy-text a:hover {
    text-decoration: underline;
}

.auth-privacy-error {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #e07070;
    margin-bottom: 12px;
}

/* ── CAPTCHA ─────────────────────────────────────────────────────────────────── */
.auth-captcha {
    margin: 16px 0 24px;
}

.auth-captcha-error {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #e07070;
    margin-top: 8px;
}

/* ── Fix all auth links ──────────────────────────────────────────────────────── */
.auth-back-link {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.auth-back-link:hover {
    color: #D4AF37;
}

.auth-resend-btn {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D4AF37;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 10px 20px;
    display: inline-block;
    transition: border-color 0.2s, background 0.2s;
    align-self: flex-start;
}

.auth-resend-btn:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    color: #D4AF37;
}

.auth-info-card-text {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    font-weight: 300;
}

.auth-password-rules {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
    font-style: italic;
    font-weight: 300;
}
/* ── Password strength ───────────────────────────────────────────────────────── */
.auth-password-strength {
    margin-bottom: 16px;
}

.auth-strength-bar-wrap {
    width: 100%;
    height: 3px;
    background: #2a2a2a;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.auth-strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.auth-strength-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-strength-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.auth-strength-muscle {
    transition: font-size 0.3s ease, filter 0.3s ease;
    display: inline-block;
}

@keyframes muscle-flex {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
/* Add to bottom of auth.css */
.auth-field-hint {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 11px;
    color: #555;
    margin-top: 6px;
    letter-spacing: 0.3px;
}
