/* ==========================================================================
   MIQ Frontend — Auth Page Styles (Login & Create Account)
   Split-screen: navy brand hero left, white form right
   ========================================================================== */

.miq-auth-page {
    --miq-navy:        #00344B;
    --miq-navy-2:      #0A4A66;
    --miq-teal:        #04A1B8;
    --miq-teal-dark:   #038092;
    --miq-teal-soft:   #E5F5F8;
    --miq-teal-light:  #7DD3E8;
    --miq-line:        #E1E6EA;
    --miq-line-soft:   #EEF1F3;
    --miq-bg:          #F7F9FA;
    --miq-muted:       #8E9AA5;
    --miq-text:        #2E3A42;
    --miq-good:        #2BAE6A;
    --miq-danger:      #D4574A;

    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--miq-text);
    background: var(--miq-bg);
    -webkit-font-smoothing: antialiased;
    font-size: 14.5px;
    line-height: 1.5;
}
.miq-auth-page * { box-sizing: border-box; }

/* Hide any FSE header/footer that might leak through */
.miq-auth-page .wp-site-blocks > header,
.miq-auth-page .wp-site-blocks > footer,
.miq-auth-page .wp-block-template-part { display: none !important; }

/* ─── Layout: split screen ──────────────────────────────────
   Page is locked to viewport height so the hero column stays
   still while the form column scrolls internally when content
   (register form) exceeds the viewport. */
.miq-auth-page .auth-wrap {
    height: 100vh;
    max-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

/* LEFT: brand hero with quote-builder illustration */
.miq-auth-page .auth-hero {
    background:
        radial-gradient(circle at 50% 35%, rgba(4,161,184,.28) 0%, transparent 55%),
        radial-gradient(circle at 15% 90%, rgba(125,211,232,.08) 0%, transparent 55%),
        linear-gradient(180deg, #002335 0%, #00344B 60%, #003A55 100%);
    color: #fff;
    padding: 40px 48px 56px;
    display: flex; flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;   /* fill the grid row (== 100vh) */
}

/* Logo */
.miq-auth-page .auth-hero-logo {
    display: inline-block;
    z-index: 3;
    text-decoration: none;
    line-height: 0;
    position: relative;
}
.miq-auth-page .auth-hero-logo img {
    display: block;
    width: 180px;
    max-width: 180px;
    height: auto;
}

/* ─── Illustration stage ──────────────────────────────────── */
.miq-auth-page .auth-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    z-index: 2;
}
.miq-auth-page .auth-stage::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(125,211,232,.35) 0%, rgba(4,161,184,.18) 25%, transparent 60%);
    pointer-events: none;
    animation: miq-auth-pulse-glow 6s ease-in-out infinite;
    filter: blur(8px);
}
.miq-auth-page .auth-stage::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(125,211,232,.18) 0%, transparent 70%);
    pointer-events: none;
    animation: miq-auth-pulse-glow-2 8s ease-in-out infinite;
}
@keyframes miq-auth-pulse-glow {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: .75; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes miq-auth-pulse-glow-2 {
    0%, 100% { opacity: .9; transform: translate(-50%, -50%) scale(1.05); }
    50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1); }
}

.miq-auth-page .auth-scene {
    position: relative;
    width: 340px;
    animation: miq-auth-float-scene 6s ease-in-out infinite;
}
@keyframes miq-auth-float-scene {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Sparkles */
.miq-auth-page .auth-spark {
    position: absolute;
    color: var(--miq-teal-light);
    opacity: .55;
    z-index: 2;
    animation: miq-auth-twinkle 3s ease-in-out infinite;
}
@keyframes miq-auth-twinkle {
    0%, 100% { opacity: .55; transform: scale(1); }
    50%      { opacity: .9; transform: scale(1.2); }
}
.miq-auth-page .auth-spark-1 { top: 12px; right: -10px; animation-delay: 0.4s; }
.miq-auth-page .auth-spark-2 { bottom: 40px; right: 30px; animation-delay: 1.6s; }
.miq-auth-page .auth-spark-3 { top: 110px; left: -22px; animation-delay: 2.4s; }

/* ─── Quote card ─────────────────────────────────────────── */
.miq-auth-page .auth-qc {
    background: #fff;
    border-radius: 12px;
    color: var(--miq-text);
    width: 100%;
    position: relative;
    z-index: 4;
    overflow: hidden;
    box-shadow:
        0 30px 60px -14px rgba(0,15,30,.55),
        0 12px 24px -6px rgba(0,15,30,.35),
        0 0 60px -8px rgba(125,211,232,.25);
}
.miq-auth-page .auth-qc-head {
    background: linear-gradient(135deg, #00344B 0%, #0A4A66 100%);
    color: #fff;
    padding: 10px 13px;
    display: flex; align-items: center; gap: 9px;
    position: relative;
    overflow: hidden;
}
.miq-auth-page .auth-qc-head::after {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(125,211,232,.22) 0%, transparent 60%);
    pointer-events: none;
}
.miq-auth-page .auth-qc-head-icon {
    width: 26px; height: 26px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: var(--miq-teal-light);
    flex-shrink: 0;
}
.miq-auth-page .auth-qc-head-title {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.3px;
}
.miq-auth-page .auth-qc-head-spacer { flex: 1; }
.miq-auth-page .auth-qc-head-pill {
    background: var(--miq-teal);
    color: #fff;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    position: relative;
    box-shadow: 0 0 0 3px rgba(4,161,184,.18);
    animation: miq-auth-pulse-pill 2.4s ease-in-out infinite;
}
@keyframes miq-auth-pulse-pill {
    0%, 100% { box-shadow: 0 0 0 3px rgba(4,161,184,.18); }
    50%      { box-shadow: 0 0 0 6px rgba(4,161,184,.1); }
}

/* Product rows */
.miq-auth-page .auth-qc-row {
    display: grid;
    grid-template-columns: 1fr 56px 36px;
    gap: 8px;
    align-items: center;
    padding: 8px 13px;
    border-bottom: 1px solid var(--miq-line-soft);
}
.miq-auth-page .auth-qc-prod {
    display: flex; align-items: center; gap: 8px;
    min-width: 0;
}
.miq-auth-page .auth-qc-thumb {
    width: 28px; height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55);
    font-size: 10px;
    font-weight: 800;
    font-family: 'Lato', sans-serif;
}
.miq-auth-page .auth-qc-thumb-1 { background: linear-gradient(135deg, #F4F0E8 0%, #E0D9CC 100%); color: var(--miq-muted); }
.miq-auth-page .auth-qc-thumb-2 { background: linear-gradient(135deg, #2A3F52 0%, #15263A 100%); }
.miq-auth-page .auth-qc-thumb-3 { background: linear-gradient(135deg, #3D3D3D 0%, #1E1E1E 100%); }
.miq-auth-page .auth-qc-prod-info { min-width: 0; }
.miq-auth-page .auth-qc-prod-name {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--miq-navy);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.miq-auth-page .auth-qc-impa {
    display: inline-block;
    background: var(--miq-teal-soft);
    color: var(--miq-teal-dark);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: .04em;
    margin-top: 1px;
}
.miq-auth-page .auth-qc-price {
    text-align: right;
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    color: var(--miq-good);
    font-size: 11px;
    line-height: 1.1;
}
.miq-auth-page .auth-qc-price small {
    display: block;
    font-size: 8.5px;
    color: var(--miq-muted);
    text-decoration: line-through;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1px;
}
.miq-auth-page .auth-qc-qty {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--miq-navy);
    background: var(--miq-line-soft);
    padding: 3px 0;
    border-radius: 5px;
}

/* Custom Transport row */
.miq-auth-page .auth-qc-transport {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg, var(--miq-teal-soft) 0%, #F4FBFC 100%);
    padding: 9px 13px;
    border-top: 1px solid var(--miq-line-soft);
}
.miq-auth-page .auth-qc-transport-icon {
    width: 26px; height: 26px;
    background: #fff;
    border: 1px solid var(--miq-teal-light);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--miq-teal-dark);
    flex-shrink: 0;
}
.miq-auth-page .auth-qc-transport-info { flex: 1; min-width: 0; }
.miq-auth-page .auth-qc-transport-title {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--miq-navy);
    line-height: 1.1;
}
.miq-auth-page .auth-qc-transport-sub {
    font-size: 9.5px;
    color: var(--miq-muted);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.miq-auth-page .auth-qc-transport-amt {
    font-family: 'Lato', sans-serif;
    font-weight: 800;
    color: var(--miq-navy);
    font-size: 11.5px;
}

/* Totals */
.miq-auth-page .auth-qc-totals {
    display: flex; align-items: center; justify-content: flex-end;
    padding: 10px 13px;
    background: linear-gradient(180deg, #FAFBFC 0%, #F2F5F7 100%);
    border-top: 1px solid var(--miq-line);
}
.miq-auth-page .auth-qc-totals-total {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: var(--miq-navy);
    font-size: 15px;
    letter-spacing: -0.4px;
}

/* ─── IMPA Match floating card ────────────────────────────── */
.miq-auth-page .auth-impa-match {
    position: absolute;
    top: -28px;
    right: -50px;
    width: 180px;
    background: #fff;
    border-radius: 10px;
    padding: 11px 12px;
    box-shadow:
        0 22px 44px -10px rgba(0,15,30,.55),
        0 8px 16px -4px rgba(0,15,30,.3),
        0 0 40px -6px rgba(125,211,232,.3);
    z-index: 7;
}
.miq-auth-page .auth-im-top {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 7px;
}
.miq-auth-page .auth-im-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--miq-good);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(43,174,106,.4);
}
.miq-auth-page .auth-im-label {
    font-size: 8.5px;
    color: var(--miq-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    line-height: 1;
}
.miq-auth-page .auth-im-number {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: var(--miq-navy);
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: -0.4px;
    margin-top: 2px;
}
.miq-auth-page .auth-im-desc {
    font-size: 10.5px;
    color: var(--miq-text);
    line-height: 1.3;
}

/* ─── 15,000+ codes chip ──────────────────────────────────── */
.miq-auth-page .auth-codes-chip {
    position: absolute;
    bottom: -22px;
    left: -50px;
    background: #fff;
    border-radius: 100px;
    padding: 8px 14px 8px 9px;
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--miq-navy);
    box-shadow:
        0 18px 36px -8px rgba(0,15,30,.5),
        0 6px 12px -3px rgba(0,15,30,.3),
        0 0 30px -4px rgba(125,211,232,.3);
    z-index: 6;
}
.miq-auth-page .auth-codes-chip-icon {
    width: 26px; height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--miq-teal-soft) 0%, #C9EAF1 100%);
    color: var(--miq-teal-dark);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 9px;
    letter-spacing: -0.5px;
}
.miq-auth-page .auth-codes-chip strong { color: var(--miq-teal-dark); font-weight: 800; }

/* ─── Hero content (text below illustration) ──────────────── */
.miq-auth-page .auth-hero-content {
    max-width: 460px;
    z-index: 3;
    position: relative;
    text-align: center;
    margin: 0 auto;
}
.miq-auth-page .auth-hero-title {
    font-family: 'Lato', sans-serif !important;
    font-weight: 900 !important;
    font-size: 30px !important;
    line-height: 1.12 !important;
    margin: 0 0 12px !important;
    color: #fff !important;
    letter-spacing: -0.5px !important;
}
.miq-auth-page .auth-hero-title .accent { color: var(--miq-teal-light); }
.miq-auth-page .auth-hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    line-height: 1.55;
    margin: 0 auto;
    max-width: 380px;
}

/* Trust signal */
.miq-auth-page .auth-hero-trust {
    margin-top: 22px;
    text-align: center;
    font-size: 11.5px;
    color: rgba(255,255,255,.5);
    z-index: 3;
    position: relative;
}
.miq-auth-page .auth-hero-trust strong { color: rgba(255,255,255,.85); font-weight: 700; }


/* RIGHT: form */
.miq-auth-page .auth-form-side {
    background: #fff;
    padding: 64px 56px;
    display: flex; flex-direction: column;
    /* NOTE: no justify-content:center — would cause layout jump when panels swap heights */
    height: 100%;       /* fill the grid row (== 100vh) */
    overflow-y: auto;   /* scroll internally when register form exceeds viewport */
}
.miq-auth-page .auth-form-inner {
    max-width: 420px;
    width: 100%;
    margin: auto;
    position: relative;
    /* height managed by JS for smooth transition between login/register panels */
}

/* ─── Panel cross-fade (login ↔ register) ──────────────────
   Form panels are ALWAYS absolute so the container can smoothly
   animate height between them without any position-flip jump. */
.miq-auth-page .auth-form-panel {
    position: absolute;
    top: 0; left: 0; right: 0;
    transition:
        opacity 280ms ease,
        transform 280ms ease,
        visibility 0s linear 280ms;
}
.miq-auth-page .auth-form-panel[data-active="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 2;
    transition:
        opacity 280ms ease,
        transform 280ms ease,
        visibility 0s linear 0s;
}
.miq-auth-page .auth-form-panel[data-active="false"] {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    z-index: 1;
}

/* Hero text — same crossfade, but stays in flow so the hero column auto-sizes.
   Heights are similar between login/register so the small jump is acceptable. */
.miq-auth-page .auth-hero-text {
    transition:
        opacity 280ms ease,
        transform 280ms ease,
        visibility 0s linear 280ms;
}
.miq-auth-page .auth-hero-text[data-active="true"] {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateY(0);
    pointer-events: auto;
    transition:
        opacity 280ms ease,
        transform 280ms ease,
        visibility 0s linear 0s;
}
.miq-auth-page .auth-hero-text[data-active="false"] {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0; left: 0; right: 0;
    transform: translateY(6px);
    pointer-events: none;
}


/* Alert (errors / success) */
.miq-auth-page .auth-alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13.5px;
    line-height: 1.45;
    border: 1px solid;
}
.miq-auth-page .auth-alert.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.miq-auth-page .auth-alert.success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.miq-auth-page .auth-form-header { margin-bottom: 28px; }
.miq-auth-page .auth-form-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: var(--miq-teal-dark);
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 6px;
}
.miq-auth-page .auth-form-header h1 {
    font-family: 'Lato', sans-serif !important;
    font-weight: 800 !important;
    font-size: 28px !important;
    color: var(--miq-navy) !important;
    margin: 0 0 6px !important;
    letter-spacing: -0.3px !important;
    line-height: 1.2 !important;
}
.miq-auth-page .auth-form-header p {
    color: var(--miq-muted);
    font-size: 14px;
    margin: 0;
}

/* Form fields */
.miq-auth-page .auth-form { display: flex; flex-direction: column; gap: 14px; }
.miq-auth-page .auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.miq-auth-page .auth-field { display: flex; flex-direction: column; gap: 5px; }
.miq-auth-page .auth-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--miq-navy);
    display: flex; align-items: center; justify-content: space-between;
}
.miq-auth-page .auth-field label .opt {
    color: var(--miq-muted);
    font-weight: 400;
    font-size: 11.5px;
}

.miq-auth-page .auth-input-wrap { position: relative; }
.miq-auth-page .auth-input-wrap .auth-input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--miq-muted);
    pointer-events: none;
}
.miq-auth-page .auth-input-wrap:focus-within .auth-input-icon { color: var(--miq-teal); }

.miq-auth-page .auth-input {
    width: 100%;
    padding: 11px 14px 11px 42px;
    border: 1.5px solid var(--miq-line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    color: var(--miq-text);
    transition: border-color .15s, box-shadow .15s;
}
.miq-auth-page .auth-input.no-icon { padding-left: 14px; }
.miq-auth-page .auth-input:focus {
    outline: none;
    border-color: var(--miq-teal);
    box-shadow: 0 0 0 3px rgba(4,161,184,.14);
}
.miq-auth-page .auth-input::placeholder { color: #B5BFC7; }

.miq-auth-page select.auth-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238E9AA5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.miq-auth-page .auth-pw-toggle {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; padding: 4px;
    color: var(--miq-muted); cursor: pointer;
    border-radius: 4px;
}
.miq-auth-page .auth-pw-toggle:hover { color: var(--miq-navy); background: var(--miq-line-soft); }

/* Password strength meter */
.miq-auth-page .auth-pw-strength {
    height: 4px;
    background: var(--miq-line);
    border-radius: 100px;
    overflow: hidden;
    margin-top: 5px;
    display: flex; gap: 3px;
}
.miq-auth-page .auth-pw-strength-bar {
    flex: 1; background: var(--miq-line); border-radius: 2px;
    transition: background .15s;
}
.miq-auth-page .auth-pw-strength-bar.weak   { background: var(--miq-danger); }
.miq-auth-page .auth-pw-strength-bar.medium { background: #f5a623; }
.miq-auth-page .auth-pw-strength-bar.good   { background: var(--miq-good); }
.miq-auth-page .auth-pw-strength-text {
    font-size: 11px; color: var(--miq-muted);
    margin-top: 4px;
    display: flex; justify-content: space-between;
}

/* Helpers row (Remember me + Forgot password) */
.miq-auth-page .auth-helpers {
    display: flex; align-items: center; justify-content: space-between;
    margin: -4px 0 4px;
    font-size: 13px;
}
.miq-auth-page .auth-remember {
    display: flex; align-items: center; gap: 8px;
    color: var(--miq-text);
    cursor: pointer;
    user-select: none;
}
.miq-auth-page .auth-remember input {
    width: 16px; height: 16px;
    accent-color: var(--miq-teal);
    cursor: pointer;
}
.miq-auth-page .auth-forgot {
    color: var(--miq-teal-dark) !important;
    text-decoration: none !important;
    font-weight: 600;
}
.miq-auth-page .auth-forgot:hover { color: var(--miq-teal) !important; text-decoration: underline !important; }

/* Terms checkbox (register) */
.miq-auth-page .auth-terms {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12.5px;
    color: var(--miq-muted);
    line-height: 1.45;
    margin-top: 4px;
}
.miq-auth-page .auth-terms input {
    width: 16px; height: 16px;
    accent-color: var(--miq-teal);
    cursor: pointer;
    margin-top: 1px;
    flex-shrink: 0;
}
.miq-auth-page .auth-terms a { color: var(--miq-teal-dark); text-decoration: underline; font-weight: 600; }

/* Submit button */
.miq-auth-page .auth-submit {
    background: var(--miq-teal);
    color: #fff;
    border: none;
    padding: 13px 18px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 2px 8px rgba(4,161,184,.22);
    transition: all .15s;
}
.miq-auth-page .auth-submit:hover {
    background: var(--miq-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4,161,184,.3);
}
.miq-auth-page .auth-submit:disabled {
    opacity: .6; cursor: wait; transform: none;
}
.miq-auth-page .auth-submit-spinner {
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin .8s linear infinite;
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

/* Footer link to switch form */
.miq-auth-page .auth-footer {
    text-align: center;
    font-size: 13.5px;
    color: var(--miq-muted);
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--miq-line-soft);
}
.miq-auth-page .auth-footer a {
    color: var(--miq-teal-dark);
    text-decoration: none;
    font-weight: 700;
}
.miq-auth-page .auth-footer a:hover { color: var(--miq-teal); text-decoration: underline; }

/* Divider with text */
.miq-auth-page .auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--miq-muted);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 6px 0;
}
.miq-auth-page .auth-divider::before,
.miq-auth-page .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--miq-line);
}

/* B2B note */
.miq-auth-page .auth-b2b-note {
    background: var(--miq-teal-soft);
    border: 1px solid #C9E8ED;
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--miq-navy);
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 6px;
    display: flex; gap: 8px; align-items: flex-start;
}
.miq-auth-page .auth-b2b-note svg { flex-shrink: 0; margin-top: 1px; color: var(--miq-teal-dark); }

/* VIES VAT validation */
.miq-auth-page .auth-vat-wrap { position: relative; }
.miq-auth-page .auth-vat-status {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    display: none;
    width: 18px; height: 18px;
    align-items: center; justify-content: center;
}
.miq-auth-page .auth-vat-status.visible { display: flex; }
.miq-auth-page .auth-vat-status .spinner {
    width: 14px; height: 14px;
    border: 2px solid var(--miq-line);
    border-top-color: var(--miq-teal);
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}
.miq-auth-page .auth-vat-status .check { color: var(--miq-good); }
.miq-auth-page .auth-vat-status .cross { color: var(--miq-danger); }
.miq-auth-page .auth-vat-status .warn  { color: #c08328; }

.miq-auth-page .auth-vat-message {
    font-size: 11.5px;
    margin-top: 5px;
    line-height: 1.4;
    display: none;
}
.miq-auth-page .auth-vat-message.visible { display: block; }
.miq-auth-page .auth-vat-message.success { color: var(--miq-good); }
.miq-auth-page .auth-vat-message.error   { color: var(--miq-danger); }
.miq-auth-page .auth-vat-message.warn    { color: #c08328; }
.miq-auth-page .auth-vat-message strong { font-weight: 700; }
.miq-auth-page .auth-vat-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(43,174,106,.1);
    color: var(--miq-good);
    border: 1px solid rgba(43,174,106,.25);
    border-radius: 100px;
    padding: 2px 8px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-left: 4px;
    vertical-align: 1px;
}

.miq-auth-page .auth-input.valid-vat {
    border-color: var(--miq-good);
    box-shadow: 0 0 0 3px rgba(43,174,106,.12);
}
.miq-auth-page .auth-input.invalid-vat {
    border-color: var(--miq-danger);
    box-shadow: 0 0 0 3px rgba(212,87,74,.12);
}

/* Responsive */
@media (max-width: 880px) {
    /* On mobile: stack columns, undo the viewport-lock so the page
       can scroll naturally with hero on top and form below. */
    .miq-auth-page .auth-wrap {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .miq-auth-page .auth-hero { padding: 32px 28px; min-height: auto; height: auto; }
    .miq-auth-page .auth-form-side { padding: 32px 28px; height: auto; overflow: visible; }
    .miq-auth-page .auth-hero-title { font-size: 26px !important; }
    .miq-auth-page .auth-stage { display: none; }
    .miq-auth-page .auth-hero-trust { margin-top: 16px; }
    .miq-auth-page .auth-form-header h1 { font-size: 22px !important; }
    .miq-auth-page .auth-row { grid-template-columns: 1fr; }
}
