/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ink: #0b1220;
    --ink-soft: #64748b;
    --brand: #2563eb;
    --brand-2: #4f8dff;
    --line: #e2e8f0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #eef2ff;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.login-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ══════════════════════════════════════════
   LEFT PANEL — aurora gradient + grid
══════════════════════════════════════════ */
.left-panel {
    flex: 1;
    min-width: 0;
    background:
        radial-gradient(1100px 600px at 12% -10%, rgba(59,130,246,.38), transparent 60%),
        radial-gradient(900px 620px at 110% 30%, rgba(124,58,237,.30), transparent 60%),
        radial-gradient(800px 500px at 40% 120%, rgba(14,165,233,.28), transparent 60%),
        linear-gradient(150deg, #060d1c 0%, #0b1a38 50%, #0f2352 100%);
    color: #fff;
    padding: 92px 52px 44px;
    font-size: clamp(13px, 1.7vh, 18px);        /* everything below scales with the window height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 4.4vh, 46px);
    position: relative;
    overflow: hidden;
}

/* fine dotted grid, fading out toward the bottom */
.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    pointer-events: none;
}

/* slow drifting glow */
.left-panel::after {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    right: -140px; top: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96,165,250,.32), transparent 65%);
    filter: blur(20px);
    animation: drift 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-60px, 40px) scale(1.15); }
}

/* decorative ring (kept from the old markup) */
.blob {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 0 90px rgba(96,165,250,.10), 0 0 0 46px rgba(255,255,255,.015), 0 0 0 92px rgba(255,255,255,.012);
    top: 50%; left: 62%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    flex-shrink: 0;
    position: absolute;
    top: 34px; left: 52px;
}

.brand-icon {
    width: 46px; height: 46px;
    background: transparent;
    display: grid; place-items: center;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 16px rgba(59,130,246,.45));
}
.brand-icon img, .brand-icon svg { width: 46px; height: 46px; }

.brand-icon.sm { width: 38px; height: 38px; filter: drop-shadow(0 4px 10px rgba(37,99,235,.28)); }
.brand-icon.sm img, .brand-icon.sm svg { width: 38px; height: 38px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; color: #fff; }
.brand-name .gold { color: #60a5fa; font-weight: 800; }

.brand-sub { font-size: 9px; letter-spacing: 2.2px; opacity: .55; margin-top: 3px; text-transform: uppercase; }

.brand-name.dark { color: var(--ink); }
.brand-name.dark .gold { color: #3b82f6; }
.brand-sub.dark  { color: var(--ink-soft); opacity: 1; }

/* Hero */
.hero-text { z-index: 1; flex-shrink: 0; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #bfdbfe;
    padding: .5em 1em .5em .8em;
    border-radius: 999px;
    background: rgba(96,165,250,.14);
    border: 1px solid rgba(147,197,253,.28);
    margin-bottom: 16px;
}
.hero-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }

.hero-text h1 {
    font-size: clamp(30px, min(3.8vw, 7.4vh), 66px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.hero-text .accent {
    background: linear-gradient(90deg, #93c5fd, #c4b5fd 60%, #f0abfc);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

.hero-text p { font-size: 1.12em; line-height: 1.65; opacity: .74; max-width: 32em; }

/* Feature list — glass tiles */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9em;
    z-index: 1;
    flex-shrink: 0;
    max-width: 44em;
}

.feature-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: 1em; font-weight: 500; line-height: 1.3;
    padding: 1.1em 1.15em;
    border-radius: 1.1em;
    align-items: flex-start;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.10);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.feature-list li:hover { transform: translateY(-2px); background: rgba(255,255,255,.09); border-color: rgba(147,197,253,.35); }

.feat-copy b { display: block; font-size: 1.04em; font-weight: 700; margin-bottom: .25em; }
.feat-copy small { display: block; font-size: .86em; line-height: 1.45; color: rgba(255,255,255,.62); font-weight: 400; }

.feat-icon {
    width: 2.7em; height: 2.7em;
    background: linear-gradient(135deg, rgba(96,165,250,.35), rgba(139,92,246,.30));
    border-radius: 10px;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.feat-icon svg { width: 1.25em; height: 1.25em; color: #e0e7ff; }

/* ── Capabilities block ── */
.feat-doc {
    z-index: 1;
    display: flex; flex-direction: column;
    flex-shrink: 0;
    max-width: 44em;
}

.feat-doc-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: #93c5fd;
}
.feat-doc-title svg { width: 13px; height: 13px; stroke: #93c5fd; flex-shrink: 0; }

.feat-doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.fd-item {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 10px 4px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.fd-num { font-size: 19px; font-weight: 800; line-height: 1; background: linear-gradient(180deg, #bfdbfe, #60a5fa); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.fd-lbl { font-size: 9px; color: rgba(255,255,255,.55); text-align: center; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; }

.fd-tags { display: none; }   /* the full tag list lives in the brochure */

.fd-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.fd-download {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .95em; font-weight: 600;
    color: #dbeafe; text-decoration: none;
    padding: .7em 1.25em;
    border: 1px solid rgba(147,197,253,.35);
    border-radius: .8em;
    background: rgba(147,197,253,.10);
    transition: background .15s, border-color .15s, transform .15s;
    cursor: pointer; font-family: inherit;
}
.fd-download svg { width: 14px; height: 14px; flex-shrink: 0; }
.fd-download:hover { background: rgba(147,197,253,.20); border-color: rgba(147,197,253,.6); color: #fff; transform: translateY(-1px); }

/* ── Floating product preview (large screens only) ── */
.float-card {
    position: absolute;
    z-index: 1;
    right: clamp(40px, 5vw, 120px); top: calc(50% - 150px);
    width: 270px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.22);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(2,6,23,.45);
    animation: floaty 7s ease-in-out infinite;
    display: none;
}
.float-card .fc-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,.7); letter-spacing: .04em; text-transform: uppercase; }
.float-card .fc-pill { font-size: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(52,211,153,.2); color: #6ee7b7; border: 1px solid rgba(52,211,153,.35); text-transform: none; letter-spacing: 0; }
.float-card .fc-amt { font-size: 26px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.02em; }
.float-card .fc-sub { font-size: 11px; color: rgba(255,255,255,.6); }
.float-card .fc-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 14px; }
.float-card .fc-bars span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #93c5fd, rgba(96,165,250,.25)); }
.float-card .fc-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 10.5px; color: rgba(255,255,255,.6); }

.float-chip {
    position: absolute; z-index: 1;
    right: calc(clamp(40px, 5vw, 120px) + 40px); top: calc(50% + 92px);
    display: none;
    align-items: center; gap: 9px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,.95); color: #0f172a;
    box-shadow: 0 16px 40px rgba(2,6,23,.4);
    animation: floaty 6s ease-in-out -2s infinite;
}
.float-chip b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 13px; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (min-width: 1700px) {
    .float-card { display: block; }
    .float-chip { display: inline-flex; }
}
@media (max-height: 620px) { .float-card, .float-chip { display: none !important; } }

/* ══════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════ */
.right-panel {
    width: 540px;
    background:
        radial-gradient(420px 320px at 100% 0%, rgba(99,102,241,.10), transparent 70%),
        radial-gradient(380px 300px at 0% 100%, rgba(56,189,248,.10), transparent 70%),
        #f8faff;
    display: flex; align-items: center; justify-content: center;
    padding: 28px 32px;
    overflow-y: auto;
    flex-shrink: 0;
    position: relative;
}

.form-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 24px;
    padding: 34px 34px 26px;
    position: relative;
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 70px -20px rgba(30,58,138,.28), 0 2px 8px rgba(15,23,42,.05);
    border: 1px solid rgba(226,232,240,.8);
    animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
/* gradient accent line across the top edge */
.form-card::before {
    content: '';
    position: absolute; left: 34px; right: 34px; top: -1px; height: 3px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.form-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }

.form-card h2 { font-size: 27px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -.02em; }

.subtitle { font-size: 14px; color: var(--ink-soft); margin-bottom: 24px; line-height: 1.5; }

/* Alert */
.alert { border-radius: 12px; padding: 11px 14px; font-size: 13px; margin-bottom: 16px; }
.alert-error { background: #fff1f2; border: 1px solid #fda4af; color: #be123c; }

/* Form groups */
.form-group { margin-bottom: 18px; }

.form-group label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }

.input-wrap { position: relative; display: flex; align-items: center; }

.input-icon {
    position: absolute; left: 14px;
    color: #94a3b8;
    display: grid; place-items: center;
    pointer-events: none;
    transition: color .2s;
}
.input-icon svg { width: 17px; height: 17px; }
.input-wrap:focus-within .input-icon { color: var(--brand); }

.form-control {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    font-size: 14.5px;
    color: var(--ink);
    background: #f8fafc;
    transition: border-color .2s, box-shadow .2s, background .2s;
    outline: none;
}
.form-control:hover { border-color: #cbd5e1; }
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(37,99,235,.13);
    background: #fff;
}
.form-control::placeholder { color: #b6c2d3; }

.toggle-pw {
    position: absolute; right: 10px;
    background: none; border: none; cursor: pointer;
    color: #94a3b8;
    display: grid; place-items: center;
    padding: 6px; border-radius: 8px;
    transition: color .15s, background .15s;
}
.toggle-pw svg { width: 17px; height: 17px; }
.toggle-pw:hover { color: var(--brand); background: #eff6ff; }

.field-error { display: block; font-size: 11.5px; color: #dc2626; margin-top: 4px; }

.caps-hint {
    display: none;
    align-items: center; gap: 6px;
    margin-top: 6px;
    font-size: 11.5px; font-weight: 600; color: #b45309;
}
.caps-hint.on { display: flex; }

/* Row: remember + forgot */
.form-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }

.remember-label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #475569; cursor: pointer; user-select: none; }
.remember-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.forgot-link { font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

/* Sign-in button */
.btn-signin {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 55%, #6366f1 100%);
    background-size: 160% 100%;
    color: #fff;
    border: none;
    border-radius: 13px;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: background-position .4s ease, transform .15s, box-shadow .2s;
    box-shadow: 0 10px 24px -6px rgba(37,99,235,.55);
}
.btn-signin:hover  { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(37,99,235,.65); }
.btn-signin:active { transform: translateY(0); }
.btn-signin:focus-visible { outline: 3px solid rgba(37,99,235,.35); outline-offset: 2px; }
.btn-signin[disabled] { opacity: .85; cursor: progress; transform: none; }
.btn-signin .spin { width: 16px; height: 16px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-signin.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Security badges */
.security-badges {
    display: flex; justify-content: center; gap: 8px;
    margin-top: 22px; padding-top: 18px;
    border-top: 1px dashed var(--line);
    font-size: 11px; color: #64748b;
    flex-wrap: wrap;
}
.security-badges span {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    font-weight: 600;
}
.security-badges svg { width: 12px; height: 12px; color: #16a34a; }

/* ── Short viewports: tighten spacing so neither panel needs a scrollbar ── */
@media (max-height: 860px) {
    .left-panel { padding: 84px 48px 30px; }
    .right-panel { padding: 16px 28px; }
    .form-card { padding: 26px 30px 20px; }
    .form-brand { margin-bottom: 16px; }
    .form-card h2 { font-size: 24px; margin-bottom: 4px; }
    .subtitle { margin-bottom: 16px; }
    .form-group { margin-bottom: 13px; }
    .form-control { padding-top: 11px; padding-bottom: 11px; }
    .form-row { margin-bottom: 16px; }
    .btn-signin { padding: 12px; }
    .security-badges { margin-top: 16px; padding-top: 14px; }
}
@media (max-height: 720px) {
    .left-panel { padding: 76px 44px 20px; gap: 10px; }
    .hero-text p { display: none; }
    .feat-copy small { display: none; }
    .feature-list li { align-items: center; padding-top: .8em; padding-bottom: .8em; }
    .form-card { padding: 20px 26px 16px; }
    .form-brand { margin-bottom: 10px; }
    .form-card h2 { font-size: 22px; }
    .subtitle { margin-bottom: 12px; font-size: 13px; }
    .form-group { margin-bottom: 10px; }
    .form-row { margin-bottom: 12px; }
    .security-badges { margin-top: 12px; padding-top: 10px; }
}

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

/* ── Responsive ── */
@media (max-width: 1100px) {
    .left-panel { padding: 30px 34px; }
    .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    body { overflow: auto; height: auto; min-height: 100vh; }
    .login-wrapper { height: auto; min-height: 100vh; overflow: visible; }
    .left-panel { display: none; }
    .right-panel {
        width: 100%; min-height: 100vh; padding: 28px 18px;
        background:
            radial-gradient(700px 400px at 10% -10%, rgba(59,130,246,.35), transparent 60%),
            radial-gradient(600px 400px at 100% 100%, rgba(124,58,237,.30), transparent 60%),
            linear-gradient(150deg, #060d1c, #0f2352);
    }
    .form-card { padding: 28px 22px 22px; }
}
