/* ══════════════════════════════════════════════════════════════
   BARKAT CAPITAL — Auth / Onboarding Split-Screen Layout
   Professional SEBI-compliant login & registration experience
   (Compact variant — reduced spacing & sizing)
   ══════════════════════════════════════════════════════════════ */

.auth-layout {
    --auth-gold: #c4a747;
    --auth-gold-light: #ead98c;
    --auth-gold-strong: #f4d777;
    --auth-gold-subtle: rgba(196, 167, 71, 0.12);
    --auth-bg-deep: #070b14;
    --auth-bg-panel: #0a0e1a;
    --auth-bg-elevated: #101830;
    --auth-text: #e8edf5;
    --auth-text-secondary: #b9c3dd;
    --auth-text-muted: #8f9ab2;
    --auth-border: rgba(255, 255, 255, 0.07);
    --auth-border-gold: rgba(196, 167, 71, 0.32);
    --auth-radius: 12px;
    --auth-radius-sm: 8px;
    --auth-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    --auth-font-serif: "Playfair Display", Georgia, serif;
    --auth-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

body.auth-layout {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--auth-bg-deep);
    color: var(--auth-text);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    overflow-x: hidden;
}

/* ═══ SPLIT-SCREEN SHELL ═══ */

.auth-layout {
    display: flex;
    min-height: 100vh;
}

/* ── LEFT: Brand + Compliance Panel ─────────────────────────── */

.auth-panel {
    position: relative;
    flex: 0 0 min(42%, 560px);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(circle at 22% 12%, rgba(196, 167, 71, 0.18), transparent 34%),
        radial-gradient(circle at 88% 30%, rgba(15, 159, 143, 0.10), transparent 30%),
        linear-gradient(165deg, #070b14 0%, #0a0e1a 46%, #0e1628 100%);
}

.auth-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(196, 167, 71, 0.016) 3px,
            rgba(196, 167, 71, 0.016) 4px
        );
    pointer-events: none;
}

.auth-panel-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(1.1rem, 2.2vw, 1.9rem);
    gap: 1.1rem;
    animation: authFadeIn 0.55s ease-out;
}

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Logo */
.auth-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.auth-logo img {
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(196, 167, 71, 0.28));
}

/* SEBI chip */
.auth-sebi-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.6rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(196, 167, 71, 0.34);
    border-radius: 999px;
    background: rgba(196, 167, 71, 0.1);
    color: var(--auth-gold-light);
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-sebi-chip i {
    font-size: 0.68rem;
    color: var(--auth-gold-strong);
}

/* Registration number block */
.auth-reg-number {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    margin-top: 0.6rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 3px solid var(--auth-gold);
    border-radius: var(--auth-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    max-width: 300px;
}

.auth-reg-label {
    color: var(--auth-text-muted);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-reg-value {
    color: var(--auth-gold-strong);
    font-family: var(--auth-font-serif);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* Mid content */
.auth-panel-mid {
    margin-top: auto;
    margin-bottom: auto;
}

.auth-panel-heading {
    color: #ffffff;
    font-family: var(--auth-font-serif);
    font-size: clamp(1rem, 1.6vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.4rem;
    text-wrap: balance;
}

.auth-panel-sub {
    color: var(--auth-text-secondary);
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0 0 0.85rem;
    max-width: 460px;
}

.auth-trust-list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: grid;
    gap: 0.3rem;
    max-width: 460px;
}

.auth-trust-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #c9d4ea;
    font-size: 0.72rem;
    line-height: 1.35;
}

.auth-trust-list li i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(196, 167, 71, 0.1);
    color: var(--auth-gold-strong);
    font-size: 0.6rem;
}

/* Document links */
.auth-doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 480px;
}

.auth-doc-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    color: #c9d4ea;
    font-size: 0.64rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--auth-transition);
}

.auth-doc-links a:hover {
    border-color: rgba(196, 167, 71, 0.42);
    background: rgba(196, 167, 71, 0.09);
    color: var(--auth-gold-light);
}

.auth-doc-links a i {
    font-size: 0.62rem;
    color: var(--auth-gold);
}

/* Bottom: risk note + foot */
.auth-panel-bottom {
    margin-top: auto;
}

.auth-risk-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 183, 77, 0.22);
    border-left: 3px solid rgba(255, 183, 77, 0.55);
    border-radius: var(--auth-radius-sm);
    background: rgba(255, 183, 77, 0.05);
}

.auth-risk-note i {
    margin-top: 0.15rem;
    flex-shrink: 0;
    color: #fbbf24;
    font-size: 0.7rem;
}

.auth-risk-note p {
    margin: 0;
    color: #d6cba6;
    font-size: 0.64rem;
    line-height: 1.5;
}

.auth-risk-note strong {
    color: #f5e7a8;
}

.auth-panel-foot {
    margin: 0.6rem 0 0;
    color: var(--auth-text-muted);
    font-size: 0.62rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-panel-foot i {
    color: var(--auth-gold);
}

/* ── RIGHT: Form Panel ─────────────────────────────────────── */

.auth-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.9rem, 2.5vw, 2.2rem);
    background:
        radial-gradient(circle at 95% 8%, rgba(196, 167, 71, 0.07), transparent 30%),
        linear-gradient(180deg, #0a0e1a 0%, #0d1526 100%);
}

.auth-main-inner {
    width: min(100%, 460px);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    animation: authFadeIn 0.55s ease-out 0.1s both;
}



/* Mobile brand strip */
.auth-mobile-brand {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 0.3rem;
}

.auth-mobile-brand .auth-logo img {
    max-height: 40px;
}

.auth-mobile-sebi {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--auth-gold-light);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Flash / body */
.auth-main-body {
    display: flex;
    flex-direction: column;
}

.auth-main-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: var(--auth-text-muted);
    font-size: 0.66rem;
}

.auth-main-foot a {
    color: var(--auth-text-secondary);
    text-decoration: none;
    transition: color var(--auth-transition);
}

.auth-main-foot a:hover {
    color: var(--auth-gold-light);
}

.auth-main-foot-sep {
    opacity: 0.5;
}

/* ═══ AUTH CARD ═══ */

.auth-card {
    position: relative;
    width: 100%;
    padding: clamp(1rem, 1.8vw, 1.5rem);
    border: 1px solid var(--auth-border-gold);
    border-top: 3px solid var(--auth-gold);
    border-radius: var(--auth-radius);
    background: linear-gradient(155deg, rgba(16, 24, 48, 0.97), rgba(8, 12, 26, 0.99));
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 88% -8%, rgba(196, 167, 71, 0.12), transparent 42%);
    pointer-events: none;
}

.auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-card-head {
    text-align: center;
    margin-bottom: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--auth-border);
}

.auth-card-head h1 {
    margin: 0.3rem 0 0.15rem;
    color: #ffffff;
    font-family: var(--auth-font-serif);
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
    font-weight: 800;
    line-height: 1.15;
}

.auth-card-head p {
    margin: 0;
    color: var(--auth-text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
}

/* Auth icon circle */
.auth-icon-circle {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.55rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--auth-gold), var(--auth-gold-light));
    color: var(--auth-bg-deep);
    font-size: 1.1rem;
    box-shadow: 0 8px 22px rgba(196, 167, 71, 0.3);
    animation: authPulse 2.6s ease-in-out infinite;
}

@keyframes authPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(196, 167, 71, 0.32); }
    50%      { box-shadow: 0 0 0 8px rgba(196, 167, 71, 0); }
}

.auth-icon-circle i {
    line-height: 1;
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.7rem 0 0.55rem;
    color: var(--auth-text-muted);
    font-size: 0.66rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-border);
}

/* ═══ STEPPER WIZARD ═══ */

.auth-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.2rem;
    margin: 0 0 0.9rem;
    padding: 0 0.2rem;
}

.auth-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    text-align: center;
    min-width: 0;
}

.auth-step-dot {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--auth-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--auth-text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    transition: all var(--auth-transition);
}

.auth-step::before {
    content: "";
    position: absolute;
    top: 15px;
    left: calc(-50% + 15px);
    right: calc(50% + 15px);
    height: 1.5px;
    background: var(--auth-border);
    z-index: 0;
}

.auth-step:first-child::before {
    display: none;
}

.auth-step-label {
    color: var(--auth-text-muted);
    font-size: 0.56rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    transition: color var(--auth-transition);
}

.auth-step .auth-step-icon {
    font-size: 0.62rem;
}

/* Active */
.auth-step.active .auth-step-dot {
    border-color: rgba(196, 167, 71, 0.6);
    background: linear-gradient(135deg, #b99428, #ead98c);
    color: var(--auth-bg-deep);
    box-shadow: 0 0 0 3px rgba(196, 167, 71, 0.16), 0 5px 13px rgba(196, 167, 71, 0.32);
}

.auth-step.active .auth-step-label {
    color: var(--auth-gold-light);
}

/* Done */
.auth-step.done .auth-step-dot {
    border-color: rgba(76, 217, 100, 0.5);
    background: rgba(76, 217, 100, 0.12);
    color: #b8ffca;
}

.auth-step.done::before {
    background: rgba(76, 217, 100, 0.45);
}

.auth-step.done .auth-step-label {
    color: #b8ffca;
}

/* ═══ STEP PILL ═══ */

.auth-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--auth-border-gold);
    border-radius: 999px;
    background: var(--auth-gold-subtle);
    color: var(--auth-gold-strong);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ═══ COMPLIANCE BOX (reused inside cards) ═══ */

.auth-compliance {
    margin-top: 0.8rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--auth-border-gold);
    border-left: 4px solid var(--auth-gold);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-gold-subtle);
    color: #efe3b4;
    font-size: 0.7rem;
    line-height: 1.55;
}

.auth-compliance a {
    color: var(--auth-gold-strong);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ═══ KYC RESULT PANEL ═══ */

.auth-result-panel {
    padding: 0.9rem;
    border: 1px solid rgba(76, 217, 100, 0.3);
    border-radius: var(--auth-radius-sm);
    background: rgba(76, 217, 100, 0.05);
}

.auth-result-panel h3 {
    margin: 0.4rem 0 0.7rem;
    color: #ffffff;
    font-family: var(--auth-font-serif);
    font-weight: 800;
    font-size: 1.05rem;
}

/* ═══ PAYMENT SUMMARY (compact) ═══ */

.auth-summary {
    display: grid;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.auth-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius-sm);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.78rem;
}

.auth-summary-row span {
    color: var(--auth-text-muted);
    font-weight: 500;
}

.auth-summary-row strong {
    color: #ffffff;
    text-align: right;
    word-break: break-word;
}

.auth-summary-row strong.gold {
    color: var(--auth-gold-strong);
}

/* ═══ SUCCESS PANEL ═══ */

.auth-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: var(--auth-bg-deep);
    font-size: 1.5rem;
    box-shadow: 0 10px 26px rgba(16, 185, 129, 0.32);
    animation: authPulse 2.6s ease-in-out infinite;
}

/* ═══ FULL-PAGE REGISTRATION MODE (top bar + full width) ═══ */

.auth-layout--fullpage {
    flex-direction: column;
}

/* Full-page mode: block layout so the sticky topbar spans full width
   on top and the card is centered below (not side-by-side flex items). */
.auth-layout--fullpage .auth-main {
    display: block;
    padding: clamp(1.25rem, 3vw, 3rem) clamp(0.9rem, 2vw, 2.5rem) clamp(2rem, 4vw, 4rem);
}

.auth-layout--fullpage .auth-main--fullpage .auth-main-inner {
    width: min(100%, 1180px);
    margin-left: auto;
    margin-right: auto;
    gap: 0.9rem;
}

/* Sticky top bar */
.auth-topbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    flex-shrink: 0;
    background: rgba(7, 11, 20, 0.88);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(196, 167, 71, 0.16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
}

.auth-topbar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.42rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-topbar .auth-logo img {
    max-height: 38px;
}

.auth-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-topbar-sebi {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(196, 167, 71, 0.32);
    border-radius: 999px;
    background: rgba(196, 167, 71, 0.08);
    color: var(--auth-gold-light);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.auth-topbar-sebi i {
    font-size: 0.66rem;
    color: var(--auth-gold-strong);
}

.auth-topbar-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--auth-text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: 7px;
    transition: all var(--auth-transition);
}

.auth-topbar-resume:hover {
    color: var(--auth-gold-light);
    background: rgba(196, 167, 71, 0.08);
}

/* Full-width registration cards — fill the fullpage container */
.auth-card--wide,
.auth-card--full {
    max-width: 100%;
    margin: 0 auto;
}

/* In fullpage mode the sticky topbar already carries the logo + SEBI chip,
   so never show the split-screen mobile brand strip. */
.auth-layout--fullpage .auth-mobile-brand {
    display: none !important;
}

/* ═══ FULL-WIDTH REGISTRATION CARD (professional redesign) ═══ */

/* Wide cards: left-aligned compact header */
.auth-card--wide .auth-card-head {
    text-align: left;
    margin-bottom: 0.55rem;
    padding-bottom: 0.7rem;
}

.auth-card--wide .auth-card-head h1 {
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    margin-top: 0.4rem;
}

.auth-card--wide .auth-card-head p {
    max-width: 680px;
}

/* Compact centered stepper on wide/full cards (avoids stretched connector lines) */
.auth-card--wide .auth-stepper,
.auth-card--full .auth-stepper {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* Center-aligned head variant (celebration screens) */
.auth-card--wide .auth-card-head--center {
    text-align: center;
}

/* Form sections */
.auth-form-section {
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--auth-border);
}

.auth-form-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.auth-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.auth-section-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--auth-border-gold);
    background: var(--auth-gold-subtle);
    color: var(--auth-gold-strong);
    font-size: 0.72rem;
}

.auth-section-head h3 {
    margin: 0.1rem 0 0;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.auth-section-head p {
    margin: 0.12rem 0 0;
    color: var(--auth-text-muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

/* eSign card head: readable centered measure (single-column design) */
.auth-card--full .auth-card-head {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Payment — single-column layout (stacked panels) */
.auth-pay-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.55rem;
    align-items: stretch;
}

.auth-pay-panel {
    padding: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: rgba(255, 255, 255, 0.02);
}

.auth-pay-panel--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: var(--auth-border-gold);
    background: linear-gradient(160deg, rgba(196, 167, 71, 0.1), rgba(196, 167, 71, 0.02));
}

.auth-secure-line {
    margin: 0.65rem 0 0;
    text-align: center;
    font-size: 0.74rem;
    color: var(--auth-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.auth-secure-line i {
    color: #34d399;
}

/* Success — single-column layout (stacked panels) */
.auth-success-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.55rem;
    align-items: stretch;
}

.auth-success-panel {
    padding: 1rem;
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    background: rgba(255, 255, 255, 0.02);
}

.auth-success-panel--cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: rgba(76, 217, 100, 0.28);
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.auth-next-list {
    display: grid;
    gap: 0.5rem;
    margin: 0.5rem 0 0.2rem;
}

.auth-next-list div {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--auth-text-secondary);
    font-size: 0.76rem;
    line-height: 1.45;
}

.auth-next-list i {
    color: #34d399;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Topbar: left brand group */
.auth-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.auth-topbar-divider {
    width: 1px;
    height: 26px;
    flex-shrink: 0;
    background: rgba(196, 167, 71, 0.28);
}

.auth-topbar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--auth-text-secondary);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.auth-topbar-title i {
    color: var(--auth-gold);
    font-size: 0.68rem;
}

/* Single-column content measure — fills most of the full-width card */
.auth-card--wide > * {
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}

/* Focused action pages (payment/success): readable panel width */
.auth-pay-grid,
.auth-success-grid {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Full-page mode: topbar spans the entire viewport width */
.auth-layout--fullpage .auth-topbar {
    width: 100%;
}

/* eSign: single-column — document on top, acceptance panel below */
.auth-layout .esign-review-grid {
    grid-template-columns: 1fr;
}

.auth-layout .esign-action-panel {
    max-width: 760px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575.98px) {
    .auth-topbar-divider,
    .auth-topbar-title {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .auth-layout--fullpage .auth-main--fullpage .auth-main-inner {
        width: 100%;
    }

    .auth-topbar-resume {
        display: none;
    }
}

/* ═══ COMPACT FORM FIELDS (override onboarding.css) ═══ */

.auth-layout .onboarding-form .input-group-wrap {
    margin-bottom: 0.6rem;
}

.auth-layout .onboarding-form label {
    margin-bottom: 0.28rem;
    font-size: 0.74rem;
}

.auth-layout .onboarding-form input:not([type="checkbox"]):not([type="radio"]),
.auth-layout .onboarding-form select,
.auth-layout .onboarding-form textarea {
    padding: 0.58rem 0.85rem 0.58rem 2.2rem;
    font-size: 0.84rem;
    border-radius: var(--auth-radius-sm);
}

.auth-layout .onboarding-form .input-icon-wrap .input-icon {
    left: 0.75rem;
    font-size: 0.78rem;
}

.auth-layout .onboarding-form .input-icon-wrap.no-icon input {
    padding-left: 0.85rem;
}

.auth-layout .onboarding-form textarea {
    padding-top: 0.6rem;
    min-height: 76px;
}

.auth-layout .onboarding-form select {
    padding-right: 2.1rem;
    background-position: right 0.85rem center;
}

.auth-layout .onboarding-form .onboarding-actions {
    margin-top: 0.9rem;
    gap: 0.6rem;
}

.auth-layout .onboarding-btn,
.auth-layout .btn-link-soft {
    min-height: 40px;
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
}

.auth-layout .onboarding-form .checkbox-line {
    margin: 0.3rem 0;
    font-size: 0.78rem;
}

.auth-layout .password-toggle {
    font-size: 0.85rem;
    padding: 0.3rem;
}

.auth-layout .consent-line {
    margin: 0.7rem 0;
    padding: 0.65rem 0.75rem;
    font-size: 0.76rem;
}

.auth-layout .esign-action-panel {
    padding: 0.65rem;
}

.auth-layout .esign-action-panel h2 {
    font-size: 0.95rem;
}

.auth-layout .esign-action-panel p {
    font-size: 0.74rem;
}

.auth-layout .esign-notice {
    padding: 0.55rem 0.6rem;
    font-size: 0.72rem;
}

.auth-layout .esign-status {
    min-height: 34px;
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.74rem;
}

/* ═══ RESPONSIVE ═══ */

@media (max-width: 991.98px) {
    .auth-layout {
        flex-direction: column;
    }

    .auth-panel {
        flex: none;
        min-height: auto;
    }

    .auth-panel-inner {
        gap: 0.7rem;
        padding: 0.9rem 1.1rem 0.8rem;
    }

    .auth-panel-mid {
        display: none;
    }

    .auth-panel-bottom {
        margin-top: 0;
    }

    .auth-sebi-chip {
        margin-top: 0.5rem;
    }

    .auth-reg-number {
        margin-top: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .auth-reg-value {
        font-size: 0.95rem;
    }

    .auth-risk-note {
        padding: 0.5rem 0.65rem;
    }

    .auth-main {
        padding: 0.9rem 0.75rem 1.6rem;
        align-items: flex-start;
    }

    .auth-mobile-brand {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .auth-main-inner {
        gap: 0.6rem;
    }

    .auth-card {
        padding: 0.95rem;
        border-radius: var(--auth-radius-sm);
    }

    .auth-step-dot {
        width: 27px;
        height: 27px;
        font-size: 0.62rem;
    }

    .auth-step::before {
        top: 13.5px;
        left: calc(-50% + 13.5px);
        right: calc(50% + 13.5px);
    }

    .auth-step-label {
        font-size: 0.52rem;
        letter-spacing: 0.05em;
    }

    .auth-risk-note {
        font-size: 0.62rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .auth-layout *,
    .auth-layout *::before,
    .auth-layout *::after {
        animation: none !important;
        transition: none !important;
    }
}
