/**
 * Kasuwa Modern Authentication Stylesheet
 * 2026 Executive Marketplace & Protected Escrow Standards
 */

:root {
    --auth-primary: #16a34a;
    --auth-primary-dark: #15803d;
    --auth-primary-light: #22c55e;
    --auth-primary-glow: rgba(22, 163, 74, 0.16);
    --auth-dark: #090d16;
    --auth-slate-900: #0f172a;
    --auth-slate-800: #1e293b;
    --auth-slate-700: #334155;
    --auth-slate-600: #475569;
    --auth-slate-500: #64748b;
    --auth-slate-400: #94a3b8;
    --auth-slate-200: #e2e8f0;
    --auth-slate-100: #f1f5f9;
    --auth-slate-50: #f8fafc;
    --auth-amber: #f59e0b;
    --auth-amber-light: #fef3c7;
    --auth-blue: #2563eb;
    --auth-card-radius: 24px;
    --auth-input-radius: 14px;
    --auth-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Base */
body.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(22, 163, 74, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.03) 0px, transparent 50%) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
    color: var(--auth-slate-900) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Modern Glassmorphic Topbar */
.modern-auth-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    transition: var(--auth-transition);
}

.modern-auth-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.modern-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--auth-slate-900);
}

.modern-auth-logo-text {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--auth-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.modern-auth-logo-text .dot {
    color: var(--auth-amber);
}

.modern-auth-logo-img {
    height: 34px;
    max-width: 160px;
    object-fit: contain;
}

.modern-auth-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.modern-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-slate-600);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 9999px;
    transition: var(--auth-transition);
}

.modern-auth-back-link:hover {
    color: var(--auth-primary);
    background: rgba(22, 163, 74, 0.06);
}

.modern-auth-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-primary);
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
    padding: 8px 16px;
    border-radius: 9999px;
    text-decoration: none;
    transition: var(--auth-transition);
}

.modern-auth-nav-pill:hover {
    background: var(--auth-primary);
    color: #ffffff;
    border-color: var(--auth-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.modern-auth-nav-pill span {
    font-weight: 700;
}

/* Auth Page Wrapper */
.modern-auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Floating Ambient Orbs */
.modern-auth-wrapper::before,
.modern-auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.modern-auth-wrapper::before {
    width: 320px;
    height: 320px;
    background: rgba(22, 163, 74, 0.08);
    top: 10%;
    left: 8%;
}

.modern-auth-wrapper::after {
    width: 380px;
    height: 380px;
    background: rgba(37, 99, 235, 0.06);
    bottom: 8%;
    right: 6%;
}

/* Master Auth Card */
.modern-auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1080px;
    background: #ffffff;
    border-radius: var(--auth-card-radius);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 
        0 20px 45px -15px rgba(15, 23, 42, 0.12),
        0 0 1px 1px rgba(15, 23, 42, 0.04);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    overflow: hidden;
    min-height: 640px;
}

/* Left Form Workspace */
.modern-auth-form-side {
    padding: 50px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

/* Security Portal Badge */
.modern-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    background: rgba(22, 163, 74, 0.08);
    color: var(--auth-primary-dark);
    border: 1px solid rgba(22, 163, 74, 0.2);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    width: fit-content;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modern-security-badge i {
    font-size: 13px;
    color: var(--auth-primary);
}

/* Header Typography */
.modern-auth-heading {
    font-size: 32px;
    font-weight: 800;
    color: var(--auth-slate-900);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 8px;
}

.modern-auth-subheading {
    font-size: 15px;
    color: var(--auth-slate-500);
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Modern Alerts */
.modern-auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 22px;
    animation: authFadeIn 0.3s ease-out;
}

.modern-auth-alert i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.modern-auth-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.modern-auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.modern-auth-alert-warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* Modern Form Group */
.modern-form-group {
    margin-bottom: 20px;
}

.modern-form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-slate-700);
    margin-bottom: 8px;
}

.modern-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--auth-slate-200);
    border-radius: var(--auth-input-radius);
    background: var(--auth-slate-50);
    transition: var(--auth-transition);
}

.modern-input-wrapper:focus-within {
    background: #ffffff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
}

.modern-input-icon {
    position: absolute;
    left: 16px;
    color: var(--auth-slate-400);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.modern-input-wrapper:focus-within .modern-input-icon {
    color: var(--auth-primary);
}

.modern-input-field {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 48px;
    font-size: 15px;
    font-weight: 500;
    color: var(--auth-slate-900);
    background: transparent;
    border: none;
    outline: none;
    border-radius: var(--auth-input-radius);
    font-family: inherit;
    box-sizing: border-box;
}

/* Chrome/Safari Autofill styling to match modern UI */
.modern-input-field:-webkit-autofill,
.modern-input-field:-webkit-autofill:hover,
.modern-input-field:-webkit-autofill:focus,
.modern-input-field:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: var(--auth-slate-900) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.modern-input-wrapper:focus-within .modern-input-field:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.modern-auth-heading,
.modern-auth-subheading,
.modern-auth-brand,
.modern-form-label,
.showcase-title,
.showcase-lead {
    word-break: break-word;
    overflow-wrap: break-word;
}

.modern-input-field::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.modern-input-wrapper.has-toggle .modern-input-field {
    padding-right: 50px;
}

/* Password Toggle Button */
.modern-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--auth-slate-400);
    cursor: pointer;
    font-size: 15px;
    transition: var(--auth-transition);
}

.modern-pass-toggle:hover {
    color: var(--auth-slate-700);
    background: rgba(15, 23, 42, 0.05);
}

/* Actions Row (Remember + Forgot) */
.modern-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 24px;
    font-size: 13.5px;
}

/* Custom Checkbox */
.modern-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--auth-slate-600);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.modern-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.modern-custom-check {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--auth-transition);
    color: #ffffff;
    font-size: 11px;
}

.modern-checkbox-label input[type="checkbox"]:checked + .modern-custom-check {
    background: var(--auth-primary);
    border-color: var(--auth-primary);
}

.modern-checkbox-label:hover .modern-custom-check {
    border-color: var(--auth-primary);
}

/* Inline Action Links */
.modern-auth-links {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.modern-auth-link {
    color: var(--auth-slate-600);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--auth-transition);
}

.modern-auth-link:hover {
    color: var(--auth-primary);
    text-decoration: underline;
}

.modern-auth-link-orange {
    color: #d97706;
}

.modern-auth-link-orange:hover {
    color: #b45309;
}

/* High-Impact Submit Button */
.modern-btn-submit {
    position: relative;
    width: 100%;
    height: 52px;
    background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--auth-input-radius);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px -4px rgba(22, 163, 74, 0.38);
    transition: var(--auth-transition);
    font-family: inherit;
}

.modern-btn-submit:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -4px rgba(22, 163, 74, 0.48);
}

.modern-btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px -2px rgba(22, 163, 74, 0.35);
}

.modern-btn-submit i {
    transition: transform 0.2s ease;
    font-size: 15px;
}

.modern-btn-submit:hover i {
    transform: translateX(4px);
}

.modern-btn-submit.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.modern-btn-submit.is-loading .btn-text {
    visibility: hidden;
}

.modern-btn-submit.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}

/* Modern Divider */
.modern-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 26px 0 20px;
    color: var(--auth-slate-400);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-auth-divider::before,
.modern-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-slate-200);
}

.modern-auth-divider span {
    padding: 0 14px;
}

/* Modern Social Auth Buttons */
.modern-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.modern-social-grid.single-col {
    grid-template-columns: 1fr;
}

.modern-social-btn {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--auth-input-radius);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--auth-transition);
}

.modern-btn-google {
    background: #ffffff;
    border: 1.5px solid var(--auth-slate-200);
    color: var(--auth-slate-700);
}

.modern-btn-google:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
    color: var(--auth-slate-900);
}

.modern-btn-google img {
    width: 19px;
    height: 19px;
}

.modern-btn-facebook {
    background: #1877f2;
    border: 1.5px solid #1877f2;
    color: #ffffff;
}

.modern-btn-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.28);
    color: #ffffff;
}

.modern-btn-facebook i {
    font-size: 16px;
}

/* Mobile Register Callout */
.modern-auth-switch-note {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--auth-slate-600);
}

.modern-auth-switch-note a {
    color: var(--auth-primary);
    font-weight: 700;
    text-decoration: none;
}

.modern-auth-switch-note a:hover {
    text-decoration: underline;
}

/* Bank-Grade Security Footer Strip */
.modern-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-slate-100);
    font-size: 12px;
    color: var(--auth-slate-500);
    font-weight: 500;
}

.modern-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modern-trust-item i {
    color: var(--auth-primary);
    font-size: 13px;
}

/* Right Column (Executive Value Showcase) */
.modern-auth-showcase {
    position: relative;
    background: linear-gradient(145deg, #064e3b 0%, #0f172a 60%, #020617 100%);
    color: #ffffff;
    padding: 50px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Showcase Ambient Glow Orbs */
.showcase-glow-orb-1,
.showcase-glow-orb-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.showcase-glow-orb-1 {
    width: 260px;
    height: 260px;
    background: rgba(34, 197, 94, 0.22);
    top: -50px;
    right: -40px;
}

.showcase-glow-orb-2 {
    width: 220px;
    height: 220px;
    background: rgba(59, 130, 246, 0.18);
    bottom: 20px;
    left: -30px;
}

/* Showcase Grid Pattern Overlay */
.showcase-mesh-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    opacity: 0.7;
}

/* Showcase Content Area */
.showcase-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 30px;
}

/* Showcase Header Badge */
.showcase-assurance-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    width: fit-content;
}

.showcase-assurance-badge i {
    color: var(--auth-amber);
    font-size: 14px;
}

.showcase-title {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.25;
    margin: 14px 0 10px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.showcase-lead {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0;
}

/* Glassmorphism Feature Cards */
.showcase-features-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 10px 0;
}

.showcase-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    transition: var(--auth-transition);
}

.showcase-feature-item:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.showcase-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.showcase-icon-emerald {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.showcase-icon-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.showcase-icon-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.showcase-feature-texts h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 2px;
}

.showcase-feature-texts p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

/* Bento Stats Strip */
.showcase-bento-strip {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.showcase-bento-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.showcase-bento-val {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1.1;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.showcase-bento-lbl {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Verified Trader Review Quote */
.showcase-quote-box {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
}

.showcase-stars {
    display: flex;
    gap: 4px;
    color: var(--auth-amber);
    font-size: 12px;
    margin-bottom: 6px;
}

.showcase-quote-text {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.88);
    font-style: italic;
    line-height: 1.45;
    margin-bottom: 6px;
}

.showcase-quote-author {
    font-size: 11.5px;
    font-weight: 700;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Keyframes */
@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Responsive Ergonomics & Mobile Zero-Clipping Standards (RULE[user_global])
   ========================================================================== */

@media (max-width: 980px) {
    .modern-auth-card {
        grid-template-columns: 1fr;
        max-width: 540px;
        border-radius: 20px;
        min-height: auto;
    }

    .modern-auth-showcase {
        display: none;
    }

    .modern-auth-form-side {
        padding: 38px 30px;
    }
}

@media (max-width: 640px) {
    .modern-auth-wrapper {
        padding: 16px 12px;
    }

    .modern-auth-topbar-inner {
        padding: 12px 16px;
    }

    .modern-auth-form-side {
        padding: 28px 20px;
    }

    .modern-auth-heading {
        font-size: 26px;
    }

    .modern-auth-subheading {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .modern-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .modern-auth-links {
        width: 100%;
        justify-content: space-between;
    }

    .modern-social-grid {
        grid-template-columns: 1fr;
    }
}

/* Extreme compact screen guard down to 320px */
@media (max-width: 380px) {
    .modern-auth-wrapper {
        padding: 10px 8px;
    }

    .modern-auth-card {
        border-radius: 16px;
    }

    .modern-auth-form-side {
        padding: 24px 14px;
    }

    .modern-auth-logo-text {
        font-size: 20px;
    }

    .modern-auth-nav-pill span {
        display: none;
    }

    .modern-auth-nav-pill::after {
        content: 'Register';
    }

    .modern-input-field {
        font-size: 14px;
        height: 48px;
        padding-left: 42px;
    }

    .modern-input-icon {
        left: 14px;
        font-size: 15px;
    }

    .modern-btn-submit {
        height: 48px;
        font-size: 15px;
    }

    .modern-trust-badges {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* ==========================================================================
   2026 Executive Registration & Signup Suite Extensions
   ========================================================================== */

.modern-signup-card {
    max-width: 1140px;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 720px;
}

.modern-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 8px;
}

.modern-form-grid .full-width {
    grid-column: 1 / -1;
}

.modern-phone-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--auth-slate-200);
    border-radius: var(--auth-input-radius);
    background: var(--auth-slate-50);
    transition: var(--auth-transition);
    overflow: hidden;
}

.modern-phone-wrapper:focus-within {
    background: #ffffff;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px var(--auth-primary-glow);
}

.modern-phone-prefix {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    height: 50px;
    background: #f1f5f9;
    border-right: 1.5px solid var(--auth-slate-200);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--auth-slate-700);
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
}

.modern-phone-prefix img {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.modern-phone-wrapper .modern-input-field {
    padding-left: 14px;
}

.modern-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}

.modern-type-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.modern-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.modern-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 14px;
    border: 1.5px solid var(--auth-slate-200);
    background: var(--auth-slate-50);
    color: var(--auth-slate-700);
    transition: var(--auth-transition);
    text-align: center;
    min-height: 66px;
    box-sizing: border-box;
}

.modern-type-card i {
    font-size: 18px;
    color: var(--auth-slate-500);
    transition: color 0.2s ease, transform 0.2s ease;
}

.modern-type-card span {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.modern-type-option:hover .modern-type-card {
    border-color: #cbd5e1;
    background: #ffffff;
}

.modern-type-option input[type="radio"]:checked + .modern-type-card {
    background: #f0fdf4;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px var(--auth-primary-glow);
    color: var(--auth-primary-dark);
}

.modern-type-option input[type="radio"]:checked + .modern-type-card i {
    color: var(--auth-primary);
    transform: scale(1.1);
}

.modern-select-field {
    width: 100%;
    height: 50px;
    padding: 0 38px 0 46px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--auth-slate-900);
    background: transparent;
    border: none;
    outline: none;
    border-radius: var(--auth-input-radius);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
}

.modern-select-arrow {
    position: absolute;
    right: 16px;
    color: var(--auth-slate-400);
    font-size: 12px;
    pointer-events: none;
}

.modern-strength-meter {
    height: 4px;
    background: #e2e8f0;
    border-radius: 999px;
    margin-top: 6px;
    overflow: hidden;
    position: relative;
}

.modern-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.modern-strength-text {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    margin-top: 4px;
    min-height: 16px;
}

.modern-terms-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--auth-slate-600);
    margin: 16px 0 22px;
    cursor: pointer;
}

.modern-terms-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.modern-terms-box .modern-custom-check {
    margin-top: 2px;
    flex-shrink: 0;
}

.modern-terms-box a {
    color: var(--auth-primary);
    text-decoration: underline;
    font-weight: 600;
}

.modern-terms-box a:hover {
    color: var(--auth-primary-dark);
}

@media (max-width: 980px) {
    .modern-signup-card {
        grid-template-columns: 1fr;
        max-width: 580px;
        min-height: auto;
    }
}

@media (max-width: 640px) {
    .modern-form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .modern-type-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .modern-type-card {
        padding: 10px 4px;
        min-height: 58px;
    }
    .modern-type-card i {
        font-size: 16px;
    }
    .modern-type-card span {
        font-size: 11.5px;
    }
}

@media (max-width: 380px) {
    .modern-type-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .modern-type-card {
        flex-direction: row;
        justify-content: flex-start;
        padding: 10px 14px;
        min-height: 48px;
        gap: 12px;
    }
    .modern-phone-prefix {
        font-size: 12px;
        padding: 0 8px;
    }
    .modern-phone-wrapper .modern-input-field {
        font-size: 13.5px;
        padding-left: 10px;
    }
}

/* Specificity overrides to defeat legacy .auth-page input styles */
.auth-page .modern-input-field,
.modern-auth-wrapper .modern-input-field,
.auth-page input[type="text"].modern-input-field,
.auth-page input[type="email"].modern-input-field,
.auth-page input[type="password"].modern-input-field,
.auth-page input[type="tel"].modern-input-field {
    padding: 0 16px 0 48px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 15px !important;
    height: 50px !important;
}

.auth-page .modern-input-wrapper.has-toggle .modern-input-field,
.modern-auth-wrapper .modern-input-wrapper.has-toggle .modern-input-field {
    padding-right: 50px !important;
}

.auth-page .modern-phone-wrapper .modern-input-field,
.modern-auth-wrapper .modern-phone-wrapper .modern-input-field {
    padding-left: 14px !important;
}

.auth-page select.modern-select-field,
.modern-auth-wrapper select.modern-select-field {
    padding: 0 38px 0 46px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 14.5px !important;
    height: 50px !important;
}

/* Showcase Visual Cards in Signup Page */
.modern-signup-card .showcase-content {
    justify-content: flex-start;
    gap: 16px;
    height: auto;
}

.showcase-visual-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.35);
    margin: 4px 0;
}

.showcase-visual-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-visual-card:hover img {
    transform: scale(1.025);
}

.showcase-visual-badge {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.02em;
}

.showcase-visual-badge i {
    font-size: 13px;
    color: #22c55e;
}


