:root {
    /* ---- Theme knob ---- */
    --primary: #0959B3;

    /* Warm neutral base */
    --ivory-50: #FBF8F3;
    --ivory-100: #F5EFE6;
    --linen-200: #ECE3D5;
    --sand-300: #DDCFBA;
    --taupe-400: #BBA98E;
    --stone-500: #8C7A60;
    --espresso-700: #463A2C;
    --espresso-800: #2C241A;
    --white: #ffffff;

    --text-strong: var(--espresso-800);
    --text-body: var(--espresso-700);
    --text-muted: var(--stone-500);
    --border-soft: var(--sand-300);
    --border-hair: rgba(44, 36, 26, 0.08);

    --font-display: 'Poppins', system-ui, sans-serif;
    --font-sans: 'Poppins', system-ui, sans-serif;
    --font-label: 'Poppins', system-ui, sans-serif;

    /* --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Manrope', system-ui, sans-serif;
    --font-label: 'Jost', 'Manrope', sans-serif; */

    --shadow-sm: 0 2px 6px rgba(44, 36, 26, 0.07);
    --shadow-lg: 0 18px 40px -14px rgba(44, 36, 26, 0.22);
    --shadow-xl: 0 34px 70px -24px rgba(28, 22, 14, 0.32);

    --focus-ring: color-mix(in srgb, var(--primary) 30%, transparent);
}

body.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 32px;
    font-family: var(--font-sans);
    color: var(--text-body);
    background: var(--ivory-50);
    background: radial-gradient(120% 80% at 100% 0%,
            color-mix(in srgb, var(--primary) 9%, var(--ivory-50)) 0%,
            var(--ivory-50) 60%);
}

/* ---------- Shell ---------- */
.auth-shell {
    width: 100%;
    max-width: 1140px;
    min-height: 720px;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-hair);
    display: flex;
    flex-direction: column;
}

.auth-shell>.row {
    flex-grow: 1;
    align-items: stretch;
}

.auth-left {
    padding: 56px clamp(28px, 5vw, 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-inner {
    width: 100%;
    margin: 0 auto;
}

.auth-inner.auth-register {
    max-width: 600px;
}

/* ---------- Brand ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.brand-img {
    max-height: 70px;
    max-width: 200px;
    object-fit: contain;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    background: linear-gradient(150deg, var(--primary), color-mix(in srgb, var(--primary) 62%, #000));
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--primary) 60%, transparent);
}

.brand-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-strong);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.brand-sub {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-label);
}

/* ---------- Segmented tabs ---------- */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--linen-200);
    border-radius: 13px;
    margin-bottom: 32px;
}

.tabs a {
    flex: 1;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    transition: all .14s ease;
}

.tabs a.active {
    background: var(--white);
    color: var(--text-strong);
    box-shadow: var(--shadow-sm);
}

/* ---------- Back link ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 28px;
}

.back-link:hover {
    color: var(--text-strong);
}

/* ---------- Headings ---------- */
.eyebrow {
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 34px;
    line-height: 1.05;
    color: var(--text-strong);
    margin: 0 0 12px;
    text-transform: capitalize;
}

.subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 30px;
    line-height: 1.6;
}

/* ---------- Fields ---------- */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 8px;
}

.field-wrap {
    position: relative;
}

.field-wrap .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    display: flex;
    pointer-events: none;
}

.fld {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border-radius: 13px;
    border: 1px solid var(--border-soft);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-strong);
    transition: border-color .14s ease, box-shadow .14s ease;
}

.fld::placeholder {
    color: var(--taupe-400);
}

.fld:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.field-wrap.has-icon .fld {
    padding-left: 44px;
}

textarea.fld {
    height: auto;
    padding: 12px 16px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

/* ---------- OTP ---------- */
.otp-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.otp {
    width: 100%;
    height: 60px;
    text-align: center;
    padding: 0;
    border-radius: 13px;
    border: 1px solid var(--border-soft);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-strong);
    transition: border-color .14s ease, box-shadow .14s ease;
}

.otp:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

/* ---------- Buttons / links ---------- */

.btn-back-cta {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #d9d9d9;
    color: #000;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex: 1;
    text-decoration: none;
    transition: background .14s ease, box-shadow .24s ease, transform .14s ease;
    box-shadow: var(--shadow-sm);
}


.btn-primary-cta {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 1;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background .14s ease, box-shadow .24s ease, transform .14s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary-cta:hover {
    background: color-mix(in srgb, var(--primary) 86%, #000);
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--primary) 55%, transparent);
    color: #fff;
}

.btn-primary-cta:active {
    transform: scale(0.985);
}

.lnk {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.lnk:hover {
    color: color-mix(in srgb, var(--primary) 82%, #000);
}

.foot {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin: 26px 0 0;
}

/* ---------- Remember switch (CSS-only, no JS) ---------- */
.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    cursor: pointer;
    user-select: none;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.remember .track {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: var(--sand-300);
    flex: 0 0 auto;
    transition: background .24s ease;
    box-shadow: inset 0 0 0 1px rgba(44, 36, 26, 0.06);
}

.remember .track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: left .24s ease;
}

.remember input:checked+.track {
    background: var(--primary);
}

.remember input:checked+.track::after {
    left: 23px;
}

.remember span {
    font-size: 14px;
    color: var(--text-body);
}

/* ---------- Validation styling ---------- */
.fld.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
}

.invalid-feedback {
    display: block;
    font-size: 13px;
    color: #dc3545;
    margin-top: 5px;
    font-weight: 500;
}

/* ---------- Verify (centered) ---------- */
.center {
    text-align: center;
}

.verify-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 24%, transparent);
}

/* ---------- Terms & Conditions layout ---------- */
.terms-checkbox {
    margin-top: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.terms-checkbox label {
    font-size: 13.5px;
    color: var(--text-body);
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terms-checkbox input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ---------- Register modal custom override ---------- */
.modal-content {
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-hair);
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--text-strong);
}

.modal-body {
    padding: 24px;
}

.new-submit-btn {
    width: 100%;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: background 0.15s ease;
}

.new-submit-btn:hover {
    background: color-mix(in srgb, var(--primary) 86%, #000);
}

#resendOtp.new-submit-btn {
    background: var(--ivory-100);
    color: var(--text-strong);
    border: 1px solid var(--border-soft);
}

#resendOtp.new-submit-btn:hover {
    background: var(--linen-200);
}

/* =====================================================================
   RIGHT ILLUSTRATION PANEL
   ===================================================================== */
.auth-panel {
    position: relative;
    overflow: hidden;
    padding: 52px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: radial-gradient(130% 120% at 12% 8%,
            color-mix(in srgb, #0959B3 78%, #fff 8%) 0%,
            color-mix(in srgb, #0959B3 92%, #000 6%) 42%,
            color-mix(in srgb, #0959B3 58%, #000 40%) 100%);
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    font-family: var(--font-label);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    white-space: nowrap;
}

.panel-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 42px;
    line-height: 1.08;
    margin: 22px 0 0;
    max-width: 420px;
    letter-spacing: -0.01em;
    text-transform: capitalize;
}

.panel-viz {
    position: relative;
    flex: 1;
    min-height: 260px;
}

.panel-viz svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.flow {
    animation: flowdash 2.4s linear infinite;
}

@keyframes flowdash {
    to {
        stroke-dashoffset: -28;
    }
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat .num {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.stat .cap {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 6px;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rise {
    animation: rise .5s cubic-bezier(0.33, 1, 0.68, 1) both;
}

@media (max-width: 991px) {
    .auth-shell {
        min-height: 0;
    }

    body.auth-body {
        padding: 16px;
    }
}

/* ---------- Stepper ---------- */
.stepper {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 17px;
}

.stepper-line {
    position: absolute;
    top: 14px;
    /* half of step-num height (28px / 2) */
    left: 54px;
    /* padding (40px) + half circle (14px) */
    right: 54px;
    height: 2px;
    background: var(--linen-200);
    z-index: 1;
}

.stepper-line-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.25s ease;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    text-align: center;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--linen-200);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid var(--white);
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.step.active .step-num {
    background: var(--primary);
    color: #fff;
}

.step-lbl {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.step.active .step-lbl {
    color: var(--text-strong);
}

/* ---------- Scrollable form fields wrapper ---------- */
/* .auth-form-scroll {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
    margin-bottom: 16px;
}

.auth-form-scroll::-webkit-scrollbar {
    width: 6px;
}

.auth-form-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.auth-form-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border-soft);
    border-radius: 20px;
} */

/* ---------- Verification OTP Digit Fields ---------- */
.otp-digit-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.otp-digit {
    width: 100%;
    height: 54px;
    text-align: center;
    border-radius: 13px;
    border: 1px solid var(--border-soft);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-strong);
    transition: border-color .14s ease, box-shadow .14s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.otp-digit.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15) !important;
}

/* ---------- Password visibility toggle and strength bar ---------- */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
}

.toggle-password:hover {
    color: var(--text-strong);
}

.password-strength {
    margin-top: 10px;
    height: 4px;
    background: var(--linen-200);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.weak {
    width: 33%;
    background: #dc3545;
}

.password-strength-bar.medium {
    width: 66%;
    background: #ffc107;
}

.password-strength-bar.strong {
    width: 100%;
    background: #28a745;
}

.password-requirements {
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.password-requirements li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-requirements li i {
    font-size: 14px;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.invalid {
    color: #dc3545;
}

/* ---------- Semantic Layout & Component Styles ---------- */
.auth-action-group {
    margin-top: 22px;
}

.panel-header {
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--text-strong);
}

.back-link svg {
    transition: transform 0.15s ease;
}

.back-link:hover svg {
    transform: translateX(-2px);
}

.forgot-password-link {
    font-size: 13px;
}

.otp-email-target {
    font-weight: 600;
    color: var(--text-strong);
}

.lnk-resend {
    cursor: pointer;
    font-weight: 600;
}

.auth-step-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    width: 100%;
    gap: 16px;
}

.btn-primary-cta svg,
.btn-back-cta svg {
    margin-left: 4px;
}

/* ---------- Full-width centered card style ---------- */
.auth-shell-wide {
    width: 100%;
    max-width: 960px;
    background: var(--white);
    border-radius: 30px;
    padding: 48px clamp(28px, 5vw, 64px);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-hair);
}

.brand-img-centered {
    max-height: 48px;
    max-width: 240px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.auth-shell-wide .auth-inner {
    max-width: 100% !important;
}

.auth-shell-wide .auth-action-group {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.auth-shell-wide .auth-action-group .btn-primary-cta {
    max-width: 280px;
    width: 100%;
}

@media(max-width : 991px) {
    .auth-left {
        padding: 30px;
    }

    .auth-panel {

        padding: 30px;
    }

    .title {
        font-size: 25px;
    }

    .panel-title {
        font-size: 27px;

    }
}