:root {
    --rcs-ink: #17151f;
    --rcs-ink-2: #4a4658;
    --rcs-muted: #7b778a;
    --rcs-line: #e9e7f0;
    --rcs-bg: #faf9fc;
    --rcs-accent: #5b4bdb;
    --rcs-accent-2: #7c5cf0;
    --rcs-accent-soft: #efecfe;
    --rcs-radius: 14px;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", sans-serif;
}

.auth-body {
    background: var(--rcs-bg);
    color: var(--rcs-ink);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}
@media (min-width: 992px) {
    .auth-shell { grid-template-columns: minmax(420px, 46%) 1fr; }
}

/* ---------- brand panel ---------- */
.auth-brand {
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    color: #f4f2ff;
    background:
        radial-gradient(900px 500px at 110% -10%, rgba(124, 92, 240, .55), transparent 60%),
        radial-gradient(700px 500px at -20% 110%, rgba(91, 75, 219, .45), transparent 60%),
        #15122b;
    overflow: hidden;
}
.auth-brand::after {
    content: "";
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
    pointer-events: none;
}
.brand-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.brand-mark {
    display: inline-grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: linear-gradient(135deg, var(--rcs-accent-2), var(--rcs-accent));
    color: #fff; box-shadow: 0 8px 24px rgba(91, 75, 219, .45);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-mark.sm { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { font-weight: 600; letter-spacing: -.01em; }
.brand-name.dark { color: var(--rcs-ink); }

.brand-copy { position: relative; z-index: 1; max-width: 460px; }
.brand-copy .eyebrow {
    font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
    color: #b9b0ff; margin-bottom: 18px;
}
.brand-copy h2 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 500; font-size: 2.45rem; line-height: 1.12; letter-spacing: -.02em;
    margin-bottom: 16px;
}
.lead-soft { color: #cfcae6; font-size: 1rem; line-height: 1.6; }

.brand-stages { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.stage {
    font-size: .78rem; padding: 6px 12px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
    color: #e5e1ff; opacity: 0; animation: rise .5s ease forwards;
    animation-delay: calc(var(--i) * 90ms + 200ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- form panel ---------- */
.auth-panel {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: #fff; border: 1px solid var(--rcs-line); border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 1px 2px rgba(23, 21, 31, .04), 0 18px 40px -20px rgba(40, 30, 90, .18);
}
.auth-card.wide { max-width: 620px; }
.mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.auth-title { font-size: 1.5rem; font-weight: 650; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { color: var(--rcs-muted); margin-bottom: 24px; font-size: .95rem; }
.auth-alert { border-radius: 12px; font-size: .9rem; padding: 10px 14px; }
.auth-foot { margin-top: 20px; color: var(--rcs-muted); font-size: .8rem; }

.form-label { font-weight: 500; font-size: .875rem; color: var(--rcs-ink-2); margin-bottom: 6px; }
.form-control, .form-select {
    border-radius: 11px; border-color: var(--rcs-line); padding: .7rem .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .form-select:focus {
    border-color: var(--rcs-accent-2);
    box-shadow: 0 0 0 4px rgba(124, 92, 240, .14);
}
.input-icon { position: relative; }
.input-icon > svg {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 17px; height: 17px; color: var(--rcs-muted); pointer-events: none;
}
.input-icon > .form-control { padding-left: 2.5rem; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: var(--rcs-muted);
    width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center;
}
.pw-toggle:hover { background: var(--rcs-accent-soft); color: var(--rcs-accent); }
.pw-toggle svg { width: 17px; height: 17px; }

.btn-primary {
    --bs-btn-bg: var(--rcs-accent); --bs-btn-border-color: var(--rcs-accent);
    --bs-btn-hover-bg: #4c3dc7; --bs-btn-hover-border-color: #4c3dc7;
    --bs-btn-active-bg: #4434b4; --bs-btn-disabled-bg: var(--rcs-accent);
    border-radius: 11px; padding: .72rem 1rem; font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(91, 75, 219, .7);
}
.btn-primary .spinner-border { width: 1rem; height: 1rem; border-width: .15em; }
.link-accent { color: var(--rcs-accent); text-decoration: none; font-weight: 500; }
.link-accent:hover { text-decoration: underline; }
.form-check-input:checked { background-color: var(--rcs-accent); border-color: var(--rcs-accent); }

.pw-meter { height: 5px; border-radius: 99px; background: var(--rcs-line); overflow: hidden; margin-top: 8px; }
.pw-meter > span { display: block; height: 100%; width: 0; transition: width .2s ease, background .2s ease; }
.pw-hint { font-size: .8rem; color: var(--rcs-muted); margin-top: 6px; }

.check-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.check-list li { display: flex; gap: 8px; align-items: center; padding: 5px 0; }
.check-list svg { width: 16px; height: 16px; flex-shrink: 0; }
.check-ok { color: #15803d; }
.check-bad { color: #b91c1c; }
.section-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--rcs-muted); font-weight: 600; margin: 22px 0 10px; }
