/* ==========================================================================
   Auth pages redesign — split screen replacing the old floating card.
   Palette matches CBT's own live-player card (charcoal + gold), not a
   copy of any reference site's navy/cream look. Diagonal divider and a
   single dominant verse (no stacked greeting+quote) are the deliberate
   points of difference.
   ========================================================================== */

:root {
    --rd-charcoal:    #2a2b25;
    --rd-charcoal-deep: #1a1b15;
    --rd-ink:         #20221c;
    --rd-ink-soft:    #62655a;
    --rd-ink-faint:   #93958a;
    --rd-paper:       #f7f4ec;
    --rd-white:       #ffffff;
    --rd-line:        #e3ddc9;
    --rd-gold:        #d6c590;
    --rd-gold-deep:   #b4a26b;
    --rd-gold-pale:   #f0e6c8;
    --rd-radius:      12px;
    --rd-serif: "Fraunces", ui-serif, Georgia, serif;
    --rd-sans:  "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Auth shell (login / signup / verify / forgot / reset) ---------- */

.rd-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--rd-paper);
}
@media (max-width: 900px) {
    .rd-auth-shell { grid-template-columns: 1fr; min-height: auto; }
    .rd-auth-photo { min-height: 280px; clip-path: none !important; }
}

.rd-auth-photo {
    position: relative;
    background-color: var(--rd-charcoal-deep);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%);
}
.rd-auth-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(26,27,21,0.55) 0%, rgba(26,27,21,0.9) 100%);
}
.rd-auth-photo::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rd-gold), var(--rd-gold-deep), var(--rd-gold));
    z-index: 2;
}
.rd-auth-photo-content {
    position: relative;
    z-index: 1;
    max-width: 380px;
    text-align: center;
}
.rd-auth-photo-title { display: none; }
.rd-auth-photo-quote {
    font-family: var(--rd-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.4;
    color: #fff;
    margin: 0 0 18px;
}
.rd-auth-photo-quote::before { content: '\201C'; }
.rd-auth-photo-quote::after { content: '\201D'; }
.rd-auth-photo-ref {
    font-family: var(--rd-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rd-gold);
}

.rd-auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rd-paper);
    padding: 48px 40px;
}
.rd-auth-form-inner { width: 100%; max-width: 400px; }
.rd-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--rd-sans);
    font-size: 13px;
    color: var(--rd-ink-soft);
    text-decoration: none;
    margin-bottom: 40px;
}
.rd-auth-back:hover { color: var(--rd-ink); }

.rd-auth-eyebrow {
    font-family: var(--rd-sans);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rd-gold-deep);
    margin: 0 0 10px;
}
.rd-auth-title {
    font-family: var(--rd-serif);
    font-weight: 600;
    font-size: 32px;
    color: var(--rd-ink);
    margin: 0 0 10px;
}
.rd-auth-subtext {
    font-family: var(--rd-sans);
    font-size: 14px;
    color: var(--rd-ink-soft);
    line-height: 1.55;
    margin: 0 0 30px;
}
.rd-auth-subtext strong { color: var(--rd-ink); }

.rd-auth-error, .rd-auth-notice {
    font-family: var(--rd-sans);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 22px;
}
.rd-auth-error {
    background: #fbeaea;
    border: 1px solid #eecccc;
    color: #a33a3a;
}
.rd-auth-notice {
    background: var(--rd-gold-pale);
    border: 1px solid #ddc98a;
    color: #6b5620;
}

.rd-auth-form { display: flex; flex-direction: column; }
.rd-auth-label {
    font-family: var(--rd-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rd-ink);
    margin: 16px 0 6px;
}
.rd-auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 16px;
}
.rd-auth-label-row .rd-auth-label { margin: 0; }
.rd-auth-forgot {
    font-family: var(--rd-sans);
    font-size: 12.5px;
    color: var(--rd-gold-deep);
    text-decoration: underline;
}
.rd-auth-input {
    font-family: var(--rd-sans);
    background: var(--rd-white);
    border: 1px solid var(--rd-line);
    border-radius: 8px;
    color: var(--rd-ink);
    padding: 12px 14px;
    font-size: 14.5px;
    width: 100%;
}
.rd-auth-input:focus {
    outline: none;
    border-color: var(--rd-gold-deep);
    box-shadow: 0 0 0 3px rgba(180,162,107,0.2);
}
.rd-auth-otp {
    text-align: center;
    font-size: 24px;
    letter-spacing: 10px;
    font-weight: 700;
}
.rd-auth-btn {
    margin-top: 28px;
    background: var(--rd-charcoal);
    color: var(--rd-gold);
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    font-family: var(--rd-sans);
    font-size: 14.5px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform .15s, box-shadow .15s, opacity .15s;
}
.rd-auth-btn:hover { transform: translateY(-1px); color: var(--rd-gold); opacity: .9; box-shadow: 0 8px 20px rgba(42,43,37,0.25); }
.rd-auth-btn-outline {
    margin-top: 30px;
    background: transparent;
    border: 1px solid var(--rd-line);
    color: var(--rd-ink);
}
.rd-auth-btn-outline:hover { background: rgba(0,0,0,0.03); color: var(--rd-ink); }

.rd-auth-resend { margin-top: 16px; text-align: center; }
.rd-auth-link-btn {
    background: none;
    border: none;
    font-family: var(--rd-sans);
    color: var(--rd-gold-deep);
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
.rd-auth-switch {
    text-align: center;
    font-family: var(--rd-sans);
    color: var(--rd-ink-soft);
    font-size: 13.5px;
    margin: 26px 0 0;
}
.rd-auth-switch a { color: var(--rd-gold-deep); text-decoration: underline; }

@media (max-width: 576px) {
    .rd-auth-form-panel { padding: 40px 24px; }
}
