/* css/pages/auth.css - Clean Netlify-Inspired Split-Screen Layout (Login, Role Selection, Step Wizard) */

/* ==========================================================================
   PAGE BASE & AMBIENT BACKGROUND
   ========================================================================== */
.auth-body {
    min-height: 100vh;
    background-color: #FFFFFF;
    color: #0F172A;
    font-family: var(--font-sans);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(0.75rem, 2vh, 1.5rem) 1rem;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html[data-theme="dark"] .auth-body,
.dark-mode .auth-body {
    background-color: #070C1B;
    color: #F8FAFC;
}

/* Ambient Radial Glows (Subtle in Dark Mode, Hidden in Clean Light Mode) */
.auth-bg-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    display: none;
}

html[data-theme="dark"] .auth-bg-ambient,
.dark-mode .auth-bg-ambient {
    display: block;
}

.auth-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.auth-bg-glow.glow-1 {
    top: -120px;
    left: 15%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(255, 136, 0, 0.18) 0%, rgba(255, 136, 0, 0) 70%);
}

.auth-bg-glow.glow-2 {
    bottom: -100px;
    right: 15%;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 70%);
}

.auth-bg-glow.glow-3 {
    top: 40%;
    right: 35%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 136, 0, 0.08) 0%, rgba(255, 136, 0, 0) 70%);
}

/* Animated Network Connections SVG Mesh */
.auth-bg-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.network-line {
    stroke: #FF8800;
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
    animation: authDashPulse 22s linear infinite;
}

.network-node {
    fill: #FF8800;
    animation: authNodePulse 3s ease-in-out infinite alternate;
}

@keyframes authDashPulse {
    to {
        stroke-dashoffset: -300;
    }
}

@keyframes authNodePulse {
    from { r: 3.5px; opacity: 0.35; }
    to { r: 6.5px; opacity: 0.95; }
}

/* ==========================================================================
   AUTH CONTAINER (CLEAN 2-COLUMN SPLIT PORTAL)
   ========================================================================== */
.auth-single-column {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1060px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-desktop-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.auth-col-showcase {
    display: none;
    width: 100%;
}

.auth-col-form {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

.auth-hero-headline {
    display: none;
}

.auth-hero-features,
.auth-hero-stats {
    display: none;
}

/* ==========================================================================
   DESKTOP VIEWPORT (min-width: 960px) - 2-COLUMN SPLIT LAYOUT
   ========================================================================== */
@media (min-width: 960px) {
    .auth-single-column {
        max-width: 1040px;
        padding: 3rem 1.5rem;
    }

    .auth-desktop-grid {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 0;
        width: 100%;
        margin: 0 auto;
        align-items: center;
    }

    /* 2-column grid definition retained for test compatibility */
    .auth-desktop-grid.split-view {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 3.5rem;
    }

    .auth-col-form {
        max-width: 440px;
        width: 100%;
        padding-right: 4.5rem;
        padding-left: 1rem;
        border-right: 1px solid #E5E7EB;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }

    html[data-theme="dark"] .auth-col-form {
        border-right-color: rgba(255, 255, 255, 0.08);
    }

    .auth-col-showcase {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        padding-left: 4.5rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 480px;
        box-sizing: border-box;
    }

    .auth-single-column.wide-role-view {
        max-width: 860px;
    }

    .auth-single-column.wide-role-view .auth-desktop-grid {
        display: flex !important;
        flex-direction: column !important;
        max-width: 860px;
    }

    .auth-single-column.wide-role-view .auth-col-showcase {
        display: none !important;
    }

    .auth-single-column.wide-role-view .auth-col-form {
        border-right: none !important;
        padding: 0 !important;
        max-width: 860px !important;
    }
}

@media (max-width: 959px) {
    .auth-single-column {
        max-width: 440px;
        padding: 1.5rem 1rem;
    }

    .auth-desktop-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .auth-col-showcase {
        display: none !important;
    }

    .auth-col-form {
        width: 100%;
        max-width: 400px;
        border-right: none !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   FULL-PAGE STEPPED CREATE ACCOUNT (REGISTER) LAYOUT
   ========================================================================== */
.auth-single-column.full-page-register {
    max-width: 680px !important;
    width: 100% !important;
    margin: 0 auto;
}

.auth-single-column.full-page-register .auth-desktop-grid {
    display: flex !important;
    flex-direction: column !important;
    max-width: 680px;
    margin: 0 auto;
    width: 100%;
}

.auth-single-column.full-page-register .auth-col-showcase {
    display: none !important;
}

.auth-single-column.full-page-register .auth-col-form {
    max-width: 680px;
    width: 100%;
}

.auth-single-column.full-page-register .auth-card-wrapper {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

.auth-single-column.full-page-register .auth-footer-badge {
    display: none !important;
}

.auth-single-column.full-page-register.wide-role-view {
    max-width: 840px !important;
}

.auth-single-column.full-page-register.wide-role-view .auth-desktop-grid,
.auth-single-column.full-page-register.wide-role-view .auth-col-form {
    max-width: 840px !important;
}

/* Full Width Stepper Header */
.auth-stepper-full {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-stepper-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.auth-stepper-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    padding: 0 0.5rem;
    box-sizing: border-box;
}

.auth-step-track-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    z-index: 2;
    cursor: default;
}

.auth-step-circle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background-color: #F1F5F9;
    border: 2px solid #CBD5E1;
    color: #64748B;
    font-size: 0.8125rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

html[data-theme="dark"] .auth-step-circle {
    background-color: #1E293B;
    border-color: #334155;
    color: #94A3B8;
}

.auth-step-track-item.active .auth-step-circle {
    background-color: #FF8800;
    border-color: #FF8800;
    color: #FFFFFF;
    box-shadow: 0 0 16px rgba(255, 136, 0, 0.45);
}

.auth-step-track-item.completed .auth-step-circle {
    background-color: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.auth-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    transition: color 0.25s ease;
}

html[data-theme="dark"] .auth-step-label {
    color: #94A3B8;
}

.auth-step-track-item.active .auth-step-label {
    color: #FF8800;
    font-weight: 800;
}

.auth-step-track-item.completed .auth-step-label {
    color: #10B981;
    font-weight: 700;
}

.auth-step-line {
    flex: 1;
    height: 3px;
    background-color: #E2E8F0;
    margin: 0 0.75rem 1.15rem;
    position: relative;
    top: -8px;
    z-index: 1;
    transition: background 0.25s ease;
    border-radius: 2px;
}

html[data-theme="dark"] .auth-step-line {
    background-color: #334155;
}

.auth-step-line.half-active {
    background: linear-gradient(90deg, #FF8800 50%, #E2E8F0 50%);
}

html[data-theme="dark"] .auth-step-line.half-active {
    background: linear-gradient(90deg, #FF8800 50%, #334155 50%);
}

.auth-step-line.completed {
    background: #10B981;
}

/* ==========================================================================
   TOP BRAND: SQUARE ICON WITH BORDER RADIUS + SELL MORE, EARN MORE
   ========================================================================== */
.auth-top-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(0.6rem, 1.5vh, 1.15rem);
    text-align: center;
}

.auth-emblem-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.45rem;
}

.auth-emblem-glow {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: radial-gradient(circle, rgba(255, 136, 0, 0.35) 0%, rgba(255, 136, 0, 0.1) 50%, transparent 75%);
    filter: blur(12px);
    pointer-events: none;
}

/* Square shape with border-radius (rounded square emblem) */
.auth-square-emblem {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%), #111B38;
    border: 1.4px solid rgba(255, 136, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(255, 136, 0, 0.22),
                0 3px 10px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast);
}

.auth-square-emblem svg {
    width: 28px;
    height: 28px;
}

.auth-square-emblem:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 136, 0, 0.3),
                0 4px 14px rgba(0, 0, 0, 0.5);
}

.auth-tagline-text {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #F8FAFC;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Centered Brand Emblem / Logo for Auth Form */
.auth-centered-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-brand-img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

html[data-theme="light"] .dark-only {
    display: none !important;
}

html[data-theme="light"] .light-only {
    display: block !important;
}

html[data-theme="dark"] .light-only {
    display: none !important;
}

html[data-theme="dark"] .dark-only {
    display: block !important;
}

.auth-single-column.full-page-register .auth-centered-brand {
    display: none;
}

/* ==========================================================================
   AUTH CARD WRAPPER
   ========================================================================== */
.auth-card-wrapper {
    width: 100%;
    background: rgba(13, 19, 32, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none !important;
    border-radius: 20px;
    padding: clamp(1.15rem, 2vh, 1.65rem) clamp(1.2rem, 2.5vw, 1.85rem);
    box-shadow: none !important;
    animation: authCardFadeIn 0.25s ease-out;
}

html[data-theme="light"] .auth-card-wrapper {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    max-width: 390px;
    width: 100%;
    margin: 0 auto;
}

.auth-single-column.wide-role-view .auth-card-wrapper,
.auth-single-column.full-page-register .auth-card-wrapper {
    max-width: 100% !important;
}

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

.auth-card-header {
    text-align: center;
    margin-bottom: clamp(0.7rem, 1.5vh, 1.15rem);
}

.auth-card-title {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    text-align: center;
}

html[data-theme="light"] .auth-card-title {
    color: #0F172A;
}

.auth-card-subtitle {
    font-size: 0.8125rem;
    color: #94A3B8;
    line-height: 1.4;
}

/* Netlify-Style Inline Error Banner */
.auth-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #881337;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 1.25rem;
    padding: 0;
    width: 100%;
}

.auth-error-icon {
    width: 16px;
    height: 16px;
    color: #BE123C;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-error-body {
    display: inline;
}

.auth-error-link {
    background: none;
    border: none;
    color: #881337;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    font-size: inherit;
    display: inline;
}

.auth-error-link:hover {
    color: #4C0519;
}

/* Trust Pill inside card */
.auth-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    color: #34D399;
    margin-top: 0.45rem;
}

/* ==========================================================================
   EXACT INPUT STYLING (NETLIFY CLEAN FORM DESIGN)
   ========================================================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.auth-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0;
    width: 100%;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 0.85rem;
    color: #64748B;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.auth-input-icon svg,
.auth-input-icon i {
    width: 17px;
    height: 17px;
}

.auth-input {
    width: 100%;
    height: 44px;
    background: #0B1329;
    border: 1.2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0 2.5rem 0 2.5rem;
    font-size: 0.875rem;
    color: #FFFFFF;
    font-family: inherit;
    transition: all var(--trans-fast);
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #FF8800;
    background: #0E1834;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.18);
}

.auth-input::placeholder {
    color: #64748B;
    font-size: 0.875rem;
}

/* Light Mode Input Overrides */
html[data-theme="light"] .auth-input {
    background: #EEF4FC;
    border: 1px solid #C9DAEC;
    color: #0F172A;
    border-radius: 6px;
}

html[data-theme="light"] .auth-input:focus,
html[data-theme="light"] .auth-input-wrap.is-focused-preview .auth-input {
    background: #FFFFFF;
    border: 2px solid #FF8800;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.16);
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: #FF8800;
}

html[data-theme="light"] .auth-input-wrap.has-error .auth-input {
    border: 2px solid #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

html[data-theme="light"] .auth-input-icon {
    color: #475569;
}

.auth-input-suffix-btn {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #64748B;
    padding: 0.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--trans-fast);
    z-index: 1;
}

.auth-input-suffix-btn:hover {
    color: #F8FAFC;
}

html[data-theme="light"] .auth-input-suffix-btn {
    color: #475569;
}

html[data-theme="light"] .auth-input-suffix-btn:hover {
    color: #0F172A;
}

/* Centered Forgot Password Link */
.auth-forgot-wrap {
    text-align: center;
    margin: 0.35rem 0 0.85rem 0;
    width: 100%;
}

.auth-link-forgot {
    background: none;
    border: none;
    color: #FF8800;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link-forgot:hover {
    color: #E67A00;
    text-decoration: underline;
}

html[data-theme="dark"] .auth-link-forgot {
    color: #FFA843;
}

/* Sleek Compact Nodaar Brand Button for Login */
#btn-login-submit {
    width: 100%;
    height: 38px !important;
    background: #FF8800 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.015em;
    box-shadow: 0 2px 6px rgba(255, 136, 0, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out !important;
    margin-top: 0.25rem;
}

#btn-login-submit:hover {
    background: #E67A00 !important;
    box-shadow: 0 4px 12px rgba(255, 136, 0, 0.35) !important;
    transform: translateY(-1px) !important;
}

#btn-login-submit:active {
    background: #D97200 !important;
    transform: translateY(1px) !important;
}

/* Secondary Links Below Submit Button */
.auth-secondary-section {
    margin-top: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.auth-switch-text {
    font-size: 0.875rem;
    color: #475569;
}

html[data-theme="dark"] .auth-switch-text {
    color: #94A3B8;
}

.auth-link-teal {
    background: none;
    border: none;
    color: #FF8800;
    font-weight: 700;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
    padding: 0 3px;
}

.auth-link-teal:hover {
    color: #E67A00;
    text-decoration: underline;
}

html[data-theme="dark"] .auth-link-teal {
    color: #FFA843;
}

.auth-role-switch {
    font-size: 0.8125rem;
    color: #64748B;
}

.auth-link-alt {
    background: none;
    border: none;
    color: #FF8800;
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
    padding: 0 3px;
}

.auth-link-alt:hover {
    color: #E67A00;
    text-decoration: underline;
}

html[data-theme="dark"] .auth-link-alt {
    color: #FFA843;
}

/* ==========================================================================
   FEATURE VALUE HIGHLIGHTS (RIGHT COLUMN)
   ========================================================================== */
.auth-feature-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    width: 100%;
}

.auth-feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.auth-feature-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.auth-feature-icon-wrap {
    color: #FF8800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-icon-wrap i,
.auth-feature-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2px;
}

html[data-theme="dark"] .auth-feature-icon-wrap {
    color: #FFA843;
}

.auth-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
    letter-spacing: -0.015em;
}

html[data-theme="dark"] .auth-feature-title {
    color: #F8FAFC;
}

.auth-feature-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
    padding-left: 2.05rem;
}

html[data-theme="dark"] .auth-feature-desc {
    color: #94A3B8;
}

.auth-feature-desc strong {
    font-weight: 700;
    color: #1E293B;
}

html[data-theme="dark"] .auth-feature-desc strong {
    color: #F1F5F9;
}

.auth-feature-desc em {
    font-style: italic;
}

.auth-input-suffix-btn:hover {
    color: #F8FAFC;
}

.auth-field-hint {
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 0.25rem;
    line-height: 1.3;
}

/* Real-time Password Strength Indicators */
.auth-strength-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.auth-strength-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #64748B;
    transition: color var(--trans-fast);
}

.auth-strength-pill.met {
    color: #10B981;
    font-weight: 600;
}

.auth-strength-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #475569;
    transition: background-color var(--trans-fast);
}

.auth-strength-pill.met .auth-strength-dot {
    background-color: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Remember me & Forgot Password Row */
.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #94A3B8;
    cursor: pointer;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] {
    accent-color: #FF8800;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.auth-link {
    color: #FF8800;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--trans-fast);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: inherit;
}

.auth-link:hover {
    color: #FFA033;
    text-decoration: underline;
}

/* Primary Action Button (Matches Flutter ElevatedButton) */
.auth-submit-btn {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #FF8800 0%, #E67A00 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 136, 0, 0.3);
    transition: transform var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
    margin-top: 0.2rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 136, 0, 0.4);
    background: linear-gradient(135deg, #FF951A 0%, #F08000 100%);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Back Link Button */
.auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94A3B8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--trans-fast);
}

.auth-back-btn:hover {
    color: #FFFFFF;
}

/* Footer Switch text (Don't have an account? Sign Up) */
.auth-switch-text {
    text-align: center;
    font-size: 0.78rem;
    color: #94A3B8;
    margin-top: clamp(0.55rem, 1.2vh, 0.85rem);
}

/* ==========================================================================
   ROLE SELECTION SCREEN (STEP 0)
   ========================================================================== */
.role-select-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0.85rem 0;
}

@media (min-width: 680px) {
    .wide-role-view {
        max-width: 780px !important;
    }

    .wide-role-view .role-select-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin: 0.85rem 0;
    }

    .wide-role-view .role-choice-card {
        padding: 1.15rem;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .wide-role-view .role-points-list {
        margin-top: 0.65rem;
    }
}

/* Top Step 1 of 4 Pill Badge */
.auth-role-pill-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #0F172A;
    color: #94A3B8;
    border: 1px solid #1E293B;
}

html[data-theme="dark"] .auth-role-pill-badge-top {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #CBD5E1;
}

.auth-role-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.role-choice-card {
    position: relative;
    padding: 1.25rem 1.35rem;
    background: #FFFFFF;
    border: 1.6px solid #E2E8F0;
    border-radius: 18px;
    cursor: pointer;
    transition: all var(--trans-fast);
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

html[data-theme="dark"] .role-choice-card {
    background: #0B1329;
    border-color: rgba(255, 255, 255, 0.08);
}

.role-choice-card:hover {
    border-color: rgba(255, 136, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.role-choice-card.selected {
    border-color: #FF8800;
    background: #FFFBF5;
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.18),
                0 10px 28px rgba(255, 136, 0, 0.1);
}

html[data-theme="dark"] .role-choice-card.selected {
    background: rgba(255, 136, 0, 0.08);
}

/* Supplier Card - Always Dark Styled (matching Image 2) */
.role-choice-card.supplier {
    background: #0B132B !important;
    border: 1.6px solid #1E293B !important;
    color: #F8FAFC !important;
}

.role-choice-card.supplier .role-choice-title {
    color: #FFFFFF !important;
}

.role-choice-card.supplier .role-choice-desc {
    color: #94A3B8 !important;
}

.role-choice-card.supplier .role-point-item {
    color: #CBD5E1 !important;
}

.role-choice-card.supplier .role-choice-radio {
    border-color: #475569 !important;
    background: #111B38 !important;
}

.role-choice-card.supplier.selected {
    border-color: #38BDF8 !important;
    background: #0C1A38 !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22),
                0 10px 28px rgba(56, 189, 248, 0.14) !important;
}

.role-choice-card.supplier.selected .role-choice-radio {
    border-color: #38BDF8 !important;
    background: #38BDF8 !important;
}

.role-choice-badge {
    display: inline-block;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.role-choice-badge.reseller {
    background: rgba(255, 136, 0, 0.12);
    color: #FF8800;
    border: 1px solid rgba(255, 136, 0, 0.3);
}

.role-choice-badge.supplier {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.role-choice-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.role-choice-title-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.role-choice-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8800;
}

.role-choice-icon-wrap.reseller-icon {
    background: #FFF4E5;
    color: #FF8800;
}

.role-choice-icon-wrap.supplier-icon {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
}

.role-choice-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
}

html[data-theme="dark"] .role-choice-title {
    color: #FFFFFF;
}

.role-choice-tagline {
    font-size: 0.72rem;
    font-weight: 700;
    color: #FF8800;
    margin-top: 1px;
}

.role-choice-card.supplier .role-choice-tagline {
    color: #38BDF8;
}

.role-choice-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--trans-fast);
}

html[data-theme="dark"] .role-choice-radio {
    border-color: #475569;
}

.role-choice-card.selected .role-choice-radio {
    border-color: #FF8800;
    background: #FF8800;
}

.role-choice-radio-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFFFFF;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--trans-fast);
}

.role-choice-card.selected .role-choice-radio-dot {
    opacity: 1;
    transform: scale(1);
}

.role-choice-desc {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.45;
    margin: 0.35rem 0 0.75rem;
}

html[data-theme="dark"] .role-choice-desc {
    color: #94A3B8;
}

.role-points-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.role-point-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.78125rem;
    color: #334155;
    line-height: 1.35;
}

html[data-theme="dark"] .role-point-item {
    color: #CBD5E1;
}

.role-point-item .point-icon {
    color: #10B981;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

/* ==========================================================================
   REGISTER FORM CARD WRAPPER (White card on light background)
   ========================================================================== */
.auth-register-card {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    animation: authCardFadeIn 0.25s ease-out;
}

html[data-theme="dark"] .auth-register-card {
    background: #0D1320;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.auth-register-card-header {
    margin-bottom: 1.5rem;
}

.auth-step-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin: 0 0 0.35rem;
}

html[data-theme="dark"] .auth-step-title {
    color: #FFFFFF;
}

.auth-step-subtitle {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0;
    line-height: 1.45;
}

html[data-theme="dark"] .auth-step-subtitle {
    color: #94A3B8;
}

/* ==========================================================================
   QUICK SOCIAL SIGN-UP BUTTONS (GOOGLE, WHATSAPP, APPLE)
   ========================================================================== */
.auth-social-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.btn-auth-provider {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    height: 46px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1.2px solid #CBD5E1;
    color: #1E293B;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 0.85rem;
    user-select: none;
    box-sizing: border-box;
    width: 100%;
}

.btn-auth-provider:hover {
    background: #F8FAFC;
    border-color: #94A3B8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn-auth-provider.btn-whatsapp-auth {
    color: #15803D;
}

.btn-auth-provider.btn-whatsapp-auth i,
.btn-auth-provider.btn-whatsapp-auth svg {
    color: #25D366;
    width: 18px;
    height: 18px;
}

.btn-auth-provider.btn-apple-auth i,
.btn-auth-provider.btn-apple-auth svg {
    width: 18px;
    height: 18px;
    color: #0F172A;
}

html[data-theme="dark"] .btn-auth-provider {
    background: #111B38;
    border-color: rgba(255, 255, 255, 0.12);
    color: #F8FAFC;
}

html[data-theme="dark"] .btn-auth-provider:hover {
    background: #16244C;
    border-color: rgba(255, 255, 255, 0.25);
}

html[data-theme="dark"] .btn-auth-provider.btn-apple-auth i,
html[data-theme="dark"] .btn-auth-provider.btn-apple-auth svg {
    color: #FFFFFF;
}

.auth-or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.15rem 0 1.25rem;
    color: #94A3B8;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-or-divider::before,
.auth-or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E2E8F0;
}

html[data-theme="dark"] .auth-or-divider::before,
html[data-theme="dark"] .auth-or-divider::after {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.auth-or-divider span {
    padding: 0 0.85rem;
}

/* ==========================================================================
   4-SEGMENT PASSWORD STRENGTH METER & CHECKLIST
   ========================================================================== */
.auth-strength-meter-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0.5rem 0 0.65rem;
    width: 100%;
}

.auth-strength-meter {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    height: 4px;
    width: 100%;
}

.auth-strength-bar {
    height: 100%;
    border-radius: 2px;
    background: #E2E8F0;
    transition: background-color 0.25s ease;
}

html[data-theme="dark"] .auth-strength-bar {
    background: #1E293B;
}

.auth-strength-bar.weak { background: #EF4444 !important; }
.auth-strength-bar.fair { background: #F59E0B !important; }
.auth-strength-bar.good { background: #38BDF8 !important; }
.auth-strength-bar.strong { background: #10B981 !important; }

.auth-strength-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.auth-strength-title {
    color: #64748B;
    font-weight: 600;
}

.auth-strength-val {
    font-weight: 700;
    color: #94A3B8;
}

.auth-strength-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.auth-strength-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-strength-pill .str-check-icon {
    width: 13px;
    height: 13px;
    color: #94A3B8;
    transition: color 0.2s ease;
}

.auth-strength-pill.met {
    color: #10B981;
    font-weight: 600;
}

.auth-strength-pill.met .str-check-icon {
    color: #10B981;
}

/* ==========================================================================
   PHONE FLAG PREFIX & WHATSAPP SYNC CARD
   ========================================================================== */
.auth-phone-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.auth-phone-flag-prefix {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.85rem;
    height: 44px;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1E293B;
    user-select: none;
    flex-shrink: 0;
    box-sizing: border-box;
}

html[data-theme="dark"] .auth-phone-flag-prefix {
    background: #0E1834;
    border-color: rgba(255, 255, 255, 0.1);
    color: #F8FAFC;
}

.auth-input.with-phone-prefix {
    flex: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    border-radius: 0 6px 6px 0 !important;
    padding-left: 0.85rem !important;
}

.wa-sync-card {
    background: rgba(16, 185, 129, 0.05);
    border: 1.4px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-top: 0.85rem;
}

.wa-sync-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.wa-sync-title-group {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.wa-sync-icon-wrap {
    color: #25D366;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wa-sync-icon-wrap i,
.wa-sync-icon-wrap svg {
    width: 16px;
    height: 16px;
}

.wa-sync-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 0.2rem;
}

html[data-theme="dark"] .wa-sync-title {
    color: #F8FAFC;
}

.wa-sync-desc {
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.35;
    margin: 0;
}

.wa-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.14);
    color: #10B981;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.wa-sync-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.8);
}

.wa-sync-checkbox {
    padding-top: 0.45rem;
    border-top: 1px dashed rgba(16, 185, 129, 0.25);
    color: #1E293B;
    font-size: 0.8125rem;
    font-weight: 600;
}

html[data-theme="dark"] .wa-sync-checkbox {
    color: #E2E8F0;
}

/* ==========================================================================
   STOREFRONT LIVE PREVIEW PILL
   ========================================================================== */
.auth-store-preview-pill {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: -0.25rem 0 0.85rem;
}

html[data-theme="dark"] .auth-store-preview-pill {
    background: #0E1834;
    border-color: rgba(255, 255, 255, 0.08);
}

.store-preview-label {
    font-size: 0.7rem;
    color: #64748B;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.store-preview-url {
    font-family: var(--font-mono, monospace);
    font-size: 0.8125rem;
    color: #475569;
}

html[data-theme="dark"] .store-preview-url {
    color: #94A3B8;
}

.store-preview-url strong {
    color: #FF8800;
    font-weight: 700;
}

/* ==========================================================================
   TRUST BADGES FOOTER
   ========================================================================== */
.auth-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    text-align: center;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #64748B;
    font-weight: 600;
}

.trust-dot {
    color: #CBD5E1;
}

html[data-theme="dark"] .trust-dot {
    color: #334155;
}

/* ==========================================================================
   MULTI-STEP REGISTRATION STEPPER
   ========================================================================== */
.auth-stepper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-step-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.auth-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background-color: #334155;
    transition: all 0.25s ease;
}

.auth-step-dot.active {
    width: 24px;
    background-color: #FF8800;
}

.auth-step-dot.done {
    background-color: #10B981;
}

.auth-role-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 700;
    background: rgba(255, 136, 0, 0.12);
    color: #FF8800;
    border: 1px solid rgba(255, 136, 0, 0.25);
}



/* File Upload Zone for Supplier Business Logo */
.auth-file-upload-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #0B1329;
    border: 1.2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.auth-file-upload-box:hover {
    border-color: #FF8800;
    background: #0E1834;
}

.auth-upload-preview {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #111B38;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-upload-meta {
    flex: 1;
}

.auth-upload-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #FFFFFF;
}

.auth-upload-sub {
    font-size: 0.6875rem;
    color: #64748B;
}

/* ==========================================================================
   TRUST FOOTER
   ========================================================================== */
.auth-footer-badge {
    margin-top: clamp(0.5rem, 1.4vh, 0.95rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.auth-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    color: #94A3B8;
}

.auth-copyright {
    font-size: 0.65rem;
    color: #475569;
    margin: 0;
}

/* ==========================================================================
   OPERATIONAL STATES & WAITLIST SYSTEM
   ========================================================================== */
.state-waitlist-banner {
    background: rgba(255, 136, 0, 0.08);
    border: 1px solid rgba(255, 136, 0, 0.3);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    animation: authCardFadeIn 0.25s ease-out;
}

.waitlist-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FF8800;
    background: rgba(255, 136, 0, 0.16);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.waitlist-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.waitlist-text {
    font-size: 0.75rem;
    color: #CBD5E1;
    line-height: 1.45;
    margin: 0;
}

.state-operational-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #34D399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.btn-waitlist {
    background: linear-gradient(135deg, #FF8800 0%, #E65100 100%) !important;
    box-shadow: 0 4px 16px rgba(255, 136, 0, 0.35) !important;
    border: none !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   EMAIL OTP VERIFICATION VIEW
   ========================================================================== */
.auth-otp-input {
    font-family: var(--font-mono, monospace);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.4em;
    text-align: center;
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    height: 56px;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
    padding-left: 0.4em; /* center letter spacing */
}

.auth-otp-input:focus {
    border-color: #FF8800;
    background: rgba(255, 136, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 136, 0, 0.25);
}

.auth-verify-tips {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 1rem 0;
}

.auth-verify-tip-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: #94A3B8;
    line-height: 1.35;
}

.auth-verify-tip-row i,
.auth-verify-tip-row svg {
    color: #FF8800;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 1px;
}

/* ==========================================================================
   RESPONSIVE REFINEMENTS
   ========================================================================== */
/* ==========================================================================
   MOBILE RESPONSIVENESS & INCREASED FONT SIZE (Touch-Friendly, iOS-Safe)
   ========================================================================== */
@media (max-width: 640px) {
    body.auth-body {
        padding: 1.5rem 1.25rem !important; /* Generous touch-friendly left and right margin */
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        min-height: 100vh !important;
    }

    .auth-single-column,
    .auth-single-column.full-page-register,
    .auth-single-column.wide-role-view {
        width: 100% !important;
        max-width: 440px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .auth-desktop-grid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .auth-col-form {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .auth-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.75rem 1.35rem !important;
        border-radius: 20px !important;
        background: rgba(13, 19, 32, 0.95) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    }

    html[data-theme="light"] .auth-card-wrapper {
        background: #FFFFFF !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
        padding: 1.75rem 1.35rem !important;
        border-radius: 20px !important;
    }

    .auth-register-card {
        padding: 1.75rem 1.35rem !important;
        border-radius: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.25rem !important;
        box-sizing: border-box !important;
    }

    /* Headings & Subtitles */
    .auth-card-title {
        font-size: 1.45rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.45rem !important;
    }

    .auth-card-subtitle {
        font-size: 0.9375rem !important;
        line-height: 1.45 !important;
        word-break: break-word !important;
    }

    .auth-step-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.35rem !important;
    }

    .auth-step-subtitle {
        font-size: 0.9375rem !important;
        line-height: 1.45 !important;
        color: #64748B !important;
    }

    /* Stepper Navigation on Mobile */
    .auth-stepper-full {
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
        padding-bottom: 0.85rem !important;
    }

    .auth-stepper-top-row {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .auth-back-btn {
        font-size: 0.78125rem !important;
        white-space: nowrap !important;
    }

    .auth-role-pill-badge {
        font-size: 0.6875rem !important;
        padding: 0.2rem 0.5rem !important;
        white-space: nowrap !important;
    }

    .auth-stepper-nav {
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .auth-step-circle {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.75rem !important;
    }

    .auth-step-label {
        font-size: 0.6875rem !important;
        font-weight: 700 !important;
    }

    .auth-step-line {
        margin: 0 0.25rem 1rem !important;
        top: -6px !important;
    }

    /* Form Fields & 16px iOS Safari Zoom Prevention */
    .auth-label {
        font-size: 0.8125rem !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        margin-bottom: 0.35rem !important;
    }

    .auth-input,
    .auth-input.with-phone-prefix,
    select.auth-input {
        font-size: 16px !important;
        height: 48px !important;
        border-radius: 8px !important;
    }

    .auth-input::placeholder {
        font-size: 15px !important;
    }

    .auth-phone-flag-prefix {
        height: 48px !important;
        font-size: 16px !important;
        padding: 0 0.75rem !important;
        border-radius: 8px 0 0 8px !important;
    }

    .auth-input.with-phone-prefix {
        border-radius: 0 8px 8px 0 !important;
    }

    .auth-field-hint {
        font-size: 0.84rem !important;
        line-height: 1.45 !important;
        margin-top: 0.35rem !important;
    }

    /* Primary Submit Buttons */
    .auth-submit-btn {
        height: 52px !important;
        min-height: 52px !important;
        font-size: 1rem !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
    }

    /* Social Auth Buttons on Mobile */
    .auth-social-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.65rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .btn-auth-provider {
        height: 44px !important;
        font-size: 0.72rem !important;
        padding: 0 0.2rem !important;
        gap: 0.25rem !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .btn-auth-provider span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .btn-auth-provider svg,
    .btn-auth-provider i {
        width: 16px !important;
        height: 16px !important;
        flex-shrink: 0 !important;
    }

    /* Password Strength Checklist */
    .auth-strength-checklist {
        grid-template-columns: 1fr !important;
        gap: 0.35rem !important;
    }

    .auth-strength-pill {
        font-size: 0.8125rem !important;
    }

    .auth-strength-pill .str-check-icon {
        width: 15px !important;
        height: 15px !important;
    }

    .auth-strength-meta {
        font-size: 0.8125rem !important;
    }

    /* WhatsApp Sync Card on Mobile */
    .wa-sync-card {
        padding: 0.9rem 0.85rem !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .wa-sync-title {
        font-size: 0.9375rem !important;
    }

    .wa-sync-desc {
        font-size: 0.8125rem !important;
        line-height: 1.45 !important;
    }

    .wa-sync-checkbox {
        font-size: 0.875rem !important;
        padding-top: 0.55rem !important;
    }

    /* Role Choice Cards on Mobile */
    .role-select-cards {
        gap: 0.85rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .role-choice-card {
        padding: 1.15rem 1rem !important;
        border-radius: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .role-choice-title {
        font-size: 1.05rem !important;
    }

    .role-choice-tagline {
        font-size: 0.78125rem !important;
    }

    .role-choice-desc {
        font-size: 0.875rem !important;
        line-height: 1.45 !important;
    }

    .role-point-item {
        font-size: 0.8125rem !important;
        line-height: 1.4 !important;
    }

    .role-choice-badge {
        font-size: 0.6875rem !important;
        padding: 0.25rem 0.65rem !important;
    }

    /* Terms & Links */
    .auth-checkbox-label {
        font-size: 0.875rem !important;
        line-height: 1.45 !important;
    }

    .auth-checkbox-label input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        flex-shrink: 0;
    }

    .auth-switch-text {
        font-size: 0.875rem !important;
    }

    /* Bottom Trust Footer */
    .auth-trust-footer {
        font-size: 0.8125rem !important;
        gap: 0.55rem !important;
        margin-top: 1.15rem !important;
    }
}

@media (max-width: 480px) {
    .auth-body {
        padding: 1.25rem 1rem !important; /* Preserves 16px side margin on small screens */
    }
    .auth-card-wrapper {
        padding: 1.5rem 1.15rem !important;
        border-radius: 18px !important;
    }
    .auth-square-emblem {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
    .auth-tagline-text {
        font-size: 1.125rem;
    }
}

/* ── Nodaar Ecosystem Cross-Portal Switcher ── */
.auth-ecosystem-box {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    text-align: center;
    transition: all 0.2s ease;
}
html[data-theme="dark"] .auth-ecosystem-box {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
.auth-ecosystem-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #64748B;
    margin-bottom: 0.65rem;
}
html[data-theme="dark"] .auth-ecosystem-title {
    color: #94A3B8;
}
.auth-ecosystem-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
}
.auth-ecosystem-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475569;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}
html[data-theme="dark"] .auth-ecosystem-links a {
    color: #CBD5E1;
}
.auth-ecosystem-links a:hover {
    color: #FF8800;
}
.auth-ecosystem-links a svg {
    width: 14px;
    height: 14px;
}

