/* Setup's sign-in and forgot-password pages (Views/Account). One file so both
   pages stay identical. Setup's own colours (site-new.css): navy and orange. */
:root {
    --navy: #0a1628; --navy2: #112240; --navy3: #1d3461;
    --orange: #e84e0f; --orange2: #ff6b35;
    --ink: #0f172a; --label: #64748b; --border: #e2e8f0; --mist: #f8fafc;
    --red: #dc2626; --red-lt: #fee2e2;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Split layout, as the portal's sign-in: insurance panel left, form right ── */
.auth { display: grid; grid-template-columns: minmax(0, min(44%, 620px)) minmax(0, 1fr); min-height: calc(100vh / var(--z, 1)); }

.hero {
    position: relative; overflow: hidden; color: #fff;
    display: flex; flex-direction: column; padding: 44px 56px 30px;
    background:
        radial-gradient(700px 480px at 10% 0%, rgba(232,78,15,.35), transparent 60%),
        radial-gradient(640px 520px at 100% 100%, rgba(59,130,246,.28), transparent 62%),
        linear-gradient(155deg, var(--navy) 0%, var(--navy2) 55%, var(--navy3) 100%);
    background-size: 140% 140%, 140% 140%, 100% 100%;
    animation: glow 16s ease-in-out infinite alternate;
}
@keyframes glow { from { background-position: 0% 0%, 100% 100%, 0 0; } to { background-position: 30% 20%, 70% 80%, 0 0; } }
.hero > * { position: relative; z-index: 1; }

.hero-brand { display: flex; align-items: center; gap: 12px; }
.hero-mark { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(140deg, var(--orange), var(--orange2)); box-shadow: 0 8px 20px rgba(232,78,15,.45); }
.hero-mark svg { width: 24px; height: 24px; }
.hero-brand strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.3px; }
.hero-brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #fdba8c; margin-top: 2px; }

.hero-body { margin: auto 0; padding: 28px 0; max-width: 520px; }
.hero-title { font-size: 40px; line-height: 1.12; font-weight: 800; letter-spacing: -1.2px; }
.hero-title span { background: linear-gradient(90deg, var(--orange2), #ffb088); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: 14.5px; line-height: 1.65; color: rgba(226,232,240,.82); margin-top: 16px; }

.hero-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.hero-list li { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: 14px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); backdrop-filter: blur(4px);
    transition: background .2s, transform .2s; }
.hero-list li:hover { background: rgba(255,255,255,.10); transform: translateX(4px); }
.hl-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hl-ico svg { width: 18px; height: 18px; }
.hl-ico.c1 { background: linear-gradient(135deg, var(--orange), var(--orange2)); }
.hl-ico.c2 { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.hl-ico.c3 { background: linear-gradient(135deg, #0d9488, #2dd4bf); }
.hero-list strong { display: block; font-size: 13.5px; font-weight: 700; }
.hero-list small { display: block; font-size: 11.5px; color: rgba(226,232,240,.7); margin-top: 1px; }

.hero-foot { margin-top: 28px; font-size: 11px; color: rgba(226,232,240,.5); }

/* The shield: outline draws itself, a check appears, cover icons orbit it. */
.hero-art { position: absolute !important; z-index: 0 !important; right: 48px; top: 56px; width: 220px; height: 220px; opacity: .95; }
.big-shield { position: absolute; inset: 48px; width: 144px; height: 144px; filter: drop-shadow(0 10px 24px rgba(232,78,15,.35)); }
/* Only a few faint icons in the panel, away from the shield and the text. */
.hero .bg-icons svg:nth-child(1), .hero .bg-icons svg:nth-child(2), .hero .bg-icons svg:nth-child(5),
.hero .bg-icons svg:nth-child(7), .hero .bg-icons svg:nth-child(4) { display: none; }
.sh-fill { fill: rgba(232,78,15,.10); opacity: 0; animation: fadeIn 1s 1.6s forwards; }
.sh-line { stroke: var(--orange2); stroke-width: .9; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.8s .3s ease-out forwards; }
.sh-check { stroke: #fff; stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .7s 1.9s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.14); animation: spin 40s linear infinite; }
.orb { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; animation: spin 40s linear infinite reverse; }
.orb svg { width: 20px; height: 20px; }
.o1 { top: -23px; left: calc(50% - 23px); }
.o2 { right: -23px; top: calc(50% - 23px); }
.o3 { bottom: -23px; left: calc(50% - 23px); }
.o4 { left: -23px; top: calc(50% - 23px); color: #fdba8c; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Content rises in, one item after another (--d is each item's delay). */
.anim { opacity: 0; transform: translateY(14px); animation: rise .7s var(--d, 0s) cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.pane { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px;
    background:
        radial-gradient(600px 420px at 85% 10%, rgba(232,78,15,.07), transparent 60%),
        radial-gradient(560px 420px at 10% 95%, rgba(37,99,235,.06), transparent 60%),
        #f1f5f9; }
.pane .card { animation: cardIn .8s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.pane .foot { color: #94a3b8; }
.pane .foot.narrow { display: none; }

@media (prefers-reduced-motion: reduce) {
    .hero, .orbit, .orb, .pane .card, .anim { animation: none !important; }
    .anim { opacity: 1; transform: none; }
    .sh-line, .sh-check { animation: none; stroke-dashoffset: 0; }
    .sh-fill { animation: none; opacity: 1; }
}

/* Narrow screens keep the same side-by-side layout (insurance panel left, form right); only the
   spacing tightens. Below 700px the page script scales the whole page down to fit. */
@media (max-width: 960px) {
    /* like the Portal sign-in: the panel takes about 44% of the width and the card is centred in the right-hand side */
    .auth { grid-template-columns: minmax(0, .79fr) minmax(0, 1fr); }
    .hero-art, .secure-pill { display: none !important; }
    .hero { padding: 32px 26px 22px; }
    .hero-title { font-size: 30px; letter-spacing: -.8px; }
    .pane { padding: 24px 14px; }
    /* the headline sits right under the logo (it was pinned to the bottom of a very tall panel, leaving a big empty gap at the top) */
    .hero-body { margin: auto 0; padding: 28px 0; }
    .hero-foot { margin-top: auto; padding-top: 24px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
    .hero { padding: 40px 40px 26px; }
    .hero-title { font-size: 33px; }
    .hero-art { right: 40px; transform: scale(.7); transform-origin: top right; }
}

/* Faint insurance icons drifting in the panel. */
.bg-icons { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bg-icons svg { position: absolute; color: #fff; opacity: .07; animation: drift 14s ease-in-out infinite; }
.bg-icons svg:nth-child(2n) { animation-duration: 18s; animation-delay: -4s; opacity: .06; }
.bg-icons svg:nth-child(3n) { animation-duration: 22s; animation-delay: -9s; color: var(--orange2); opacity: .09; }
@keyframes drift { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .bg-icons svg { animation: none; } }
/* A soft grid, like a policy schedule, very faint. */
.bg-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

.card {
    position: relative; z-index: 1;
    width: 100%; max-width: 570px; display: flex; flex-direction: column; justify-content: center;
    background: #fff; border-radius: 22px;
    padding: 30px 34px 22px;
    box-shadow: 0 24px 60px rgba(15,23,42,.14), 0 2px 6px rgba(15,23,42,.06);
    overflow: hidden;
}
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange2), #ffb088); }

.emblem { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 20px;
    background: linear-gradient(140deg, var(--orange), var(--orange2));
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 12px 26px rgba(232,78,15,.38), inset 0 1px 0 rgba(255,255,255,.35);
    position: relative; }
.emblem::after { content: ''; position: absolute; inset: -7px; border-radius: 26px; border: 2px solid rgba(232,78,15,.16); }
.emblem svg { width: 34px; height: 34px; }

.brand { text-align: center; margin-bottom: 16px; }
.brand-row { display: inline-flex; align-items: center; gap: 8px; }
.brand-name { font-size: 15px; font-weight: 800; color: var(--navy); letter-spacing: -.2px; }
.brand-tag { font-size: 9.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
    color: #fff; background: var(--navy2); padding: 3px 8px; border-radius: 5px; }
h1 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; color: var(--ink); margin-top: 10px; }
.sub { font-size: 13px; color: var(--label); margin-top: 6px; line-height: 1.5; }

.alert { display: flex; gap: 10px; align-items: flex-start; background: var(--red-lt); color: #991b1b;
    border: 1px solid #fecaca; border-radius: 12px; padding: 11px 13px; font-size: 12.5px; line-height: 1.45; margin-bottom: 16px; }
.alert svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; }
.alert.notice { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.alert.success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

.field { margin-bottom: 11px; }
.field label { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #475569; margin-bottom: 7px; }
.input { position: relative; }
.input .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #94a3b8; pointer-events: none; }
.input input { width: 100%; height: 46px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--mist);
    padding: 0 44px 0 40px; font: inherit; font-size: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; }
.input input::placeholder { color: #a3aec0; }
.input input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(232,78,15,.12); }
.input:focus-within .ico { color: var(--orange); }
.input input.mismatch { border-color: var(--red); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: none; background: none;
    border-radius: 8px; color: #94a3b8; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.eye:hover { background: #eef2f7; color: var(--ink); }
.eye svg { width: 17px; height: 17px; }
.hint { font-size: 11.5px; color: var(--red); margin-top: 6px; min-height: 0; }

.row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 16px; font-size: 12.5px; }
.check { display: inline-flex; align-items: center; gap: 8px; color: #334155; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--orange); cursor: pointer; }
.link { color: var(--orange); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn { width: 100%; height: 48px; border: none; border-radius: 12px; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--orange2));
    box-shadow: 0 10px 22px rgba(232,78,15,.32); display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .12s, box-shadow .15s, filter .15s; text-decoration: none; }
.btn:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(232,78,15,.4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .75; cursor: progress; }
.btn svg { width: 17px; height: 17px; }
.back { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 12.5px; }
.back svg { width: 14px; height: 14px; }

.help { text-align: center; font-size: 12px; color: var(--label); margin-top: 12px; line-height: 1.5; }
.help strong { color: #334155; font-weight: 600; }

.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.trust span { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: #94a3b8; letter-spacing: .3px; }
.trust svg { width: 13px; height: 13px; }

.foot { position: relative; z-index: 1; margin-top: 22px; font-size: 11.5px; color: rgba(226,232,240,.55); text-align: center; }

@media (max-width: 480px) {
    .card { padding: 30px 22px 22px; border-radius: 18px; }
    h1 { font-size: 21px; }
}

/* ── Card polish (07/10/2026) ───────────────────────────────────────────── */
/* Soft orange and blue lights drifting behind the card. */
.pane { position: relative; overflow: hidden; }
.pane > * { position: relative; z-index: 1; }
.blob { position: absolute !important; z-index: 0 !important; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; }
.b1 { width: 340px; height: 340px; background: rgba(255,107,53,.35); top: -80px; right: -60px; animation: float1 14s ease-in-out infinite alternate; }
.b2 { width: 380px; height: 380px; background: rgba(37,99,235,.22); bottom: -120px; left: -80px; animation: float2 18s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate(-60px, 70px) scale(1.1); } }
@keyframes float2 { to { transform: translate(70px, -50px) scale(1.08); } }

/* "UK · Secure administration area" pill above the card. */
.secure-pill { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 6px 13px 6px 6px; border-radius: 999px;
    background: rgba(255,255,255,.75); border: 1px solid #e2e8f0; backdrop-filter: blur(6px); box-shadow: 0 4px 14px rgba(15,23,42,.06);
    font-size: 11.5px; font-weight: 600; color: #334155; animation: cardIn .7s .05s both; }
.secure-pill svg { width: 13px; height: 13px; color: #15803d; }
.secure-pill .uk { background: var(--navy2); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; padding: 3px 7px; border-radius: 999px; }

/* An orange-and-blue border that slowly travels round the card. */
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.pane .card { border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                conic-gradient(from var(--spin), #ff6b35, #fdba8c, #93c5fd, #2563eb, #fdba8c, #ff6b35) border-box;
    animation: cardIn .8s .15s cubic-bezier(.2,.7,.2,1) both, spinBorder 8s linear infinite; }
.pane .card::before { display: none; }
@keyframes spinBorder { to { --spin: 360deg; } }

/* The emblem breathes: a soft orange ring pulses out from it. */
.emblem::after { animation: pulseRing 2.6s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

.greet { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); margin-top: 12px; }
.greet + h1 { margin-top: 2px; }

/* Fields: a lift and an orange glow while typing. */
.input input:focus { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(232,78,15,.12), 0 6px 16px rgba(232,78,15,.10); }
.input input { transition: border-color .15s, box-shadow .2s, background .15s, transform .15s; }

.caps { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 11.5px; font-weight: 600; color: #b45309; }
.caps[hidden] { display: none; }
.caps svg { width: 13px; height: 13px; }

/* Button: a light sweep across it and the arrow nudging forward on hover. */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-18deg); animation: sweep 4.5s 1.5s ease-in-out infinite; }
@keyframes sweep { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
    .blob, .secure-pill, .pane .card, .emblem::after, .btn::after { animation: none !important; }
}

/* Small phones: laid out like the Portal sign-in - the panel on the left (36% of the width) with the logo and headline together, no
   shield picture over the text, and the sign-in card centred in the wider right-hand column. */
@media (max-width: 799px) {
    .auth { grid-template-columns: minmax(0, .79fr) minmax(0, 1fr); }
    .hero { padding: 30px 20px 26px; }
    .hero-art, .secure-pill { display: none !important; }
    .hero-body { margin: auto 0; padding: 24px 0; }
    .hero-title { font-size: 27px; letter-spacing: -.7px; }
    .hero-text { font-size: 13px; line-height: 1.55; }
    .pane { padding: 24px 14px; }
}

/* The shield picture only shows where there is room for it above the headline (large screens); on laptops it would overlap the text. */
@media (max-width: 1849px), (max-height: 1049px) {
    .hero-art { display: none !important; }
}
