:root {
  --navy: #102a43;
  --navy-2: #173f5f;
  --blue: #1769aa;
  --blue-light: #eaf4fb;
  --teal: #19a58f;
  --ink: #162536;
  --muted: #65758b;
  --line: #dbe3eb;
  --surface: #f4f7fa;
  --white: #fff;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(16, 42, 67, .12);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { min-height: 100vh; display: block; }
.brand-panel { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; padding: 54px clamp(44px, 6vw, 94px); color: var(--white); background: linear-gradient(145deg, #0b253a 0%, #123f5b 55%, #116475 100%); }
.brand-panel::before { content: ""; position: absolute; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; right: -280px; top: -120px; box-shadow: 0 0 0 78px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025); }
.brand-panel::after { content: ""; position: absolute; width: 180px; height: 180px; left: -90px; bottom: 14%; background: rgba(25,165,143,.13); transform: rotate(45deg); }
.brand-mark { position: relative; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--teal); color: white; font-size: 27px; font-weight: 800; box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.brand-mark.small { width: 35px; height: 35px; border-radius: 10px; font-size: 18px; }
.brand-copy { position: relative; z-index: 1; margin: auto 0 46px; max-width: 570px; }
.eyebrow { margin: 0 0 14px; color: #7ce0d1; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); }
.brand-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 5vw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.brand-description { margin: 25px 0 0; max-width: 510px; color: #c8dbe5; font-size: 17px; line-height: 1.7; }
.trust-list { position: relative; z-index: 1; display: grid; gap: 13px; max-width: 540px; }
.trust-list div { display: flex; align-items: center; gap: 14px; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.14); }
.trust-list span { color: #78d5c8; font-size: 12px; font-weight: 800; }
.trust-list p { margin: 0; color: #d6e5eb; font-size: 13px; }
.trust-list strong { color: white; }
.brand-footer { position: relative; z-index: 1; margin: 38px 0 0; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.content-panel { min-height: 100vh; display: grid; place-items: center; padding: 54px 24px; background: linear-gradient(145deg,#f5f9fc,#fff 55%,#edf8f6); }
.mobile-brand { display: none; }
.view { display: none; width: min(100%, 590px); animation: enter .28s ease; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view-header { margin-bottom: 34px; }
.view-header.compact { margin-bottom: 25px; }
.view-header h2, .status-view h2 { margin: 0 0 10px; color: var(--navy); font-size: clamp(32px, 4vw, 43px); font-weight: 750; letter-spacing: -.025em; }
.view-header p, .status-view > p { margin: 0; color: var(--muted); line-height: 1.65; }
.form { display: grid; gap: 20px; }
.form label { display: grid; gap: 8px; color: #34475a; font-size: 13px; font-weight: 750; }
input { width: 100%; height: 52px; padding: 0 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; outline: none; background: #fbfcfd; transition: .18s; }
input::placeholder { color: #9aa8b6; }
input:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 3px rgba(23,105,170,.1); }
input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,35,24,.08); }
small { color: var(--muted); font-weight: 450; line-height: 1.45; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 80px; }
.show-password { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 750; cursor: pointer; }
.form-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.check { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px !important; font-weight: 500 !important; line-height: 1.45; cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--blue); }
.check a, .support a { color: var(--blue); }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; }
.text-button.centered { display: block; margin: 18px auto 0; }
.primary-button, .secondary-button { min-height: 52px; padding: 0 20px; border-radius: 10px; font-weight: 800; cursor: pointer; transition: .18s; }
.primary-button { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--blue); color: white; background: var(--blue); box-shadow: 0 8px 18px rgba(23,105,170,.2); }
.primary-button:hover { background: #115b93; transform: translateY(-1px); }
.secondary-button { width: 100%; border: 1px solid #bdcbd8; color: var(--navy); background: white; }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }
.secondary-button.narrow { width: auto; min-width: 110px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: #8998a8; font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.support { margin: 28px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.field-error { min-height: 16px; margin: -8px 0; color: var(--danger); font-size: 12px; font-weight: 650; }
.back-button { margin-bottom: 28px; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 750; cursor: pointer; }
.steps { display: flex; justify-content: space-between; margin: 0 0 28px; padding: 0; list-style: none; }
.steps li { position: relative; flex: 1; display: flex; align-items: center; gap: 8px; color: #98a6b5; font-size: 11px; font-weight: 750; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 35px; right: 12px; top: 13px; height: 1px; background: var(--line); }
.steps span { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; }
.steps li.current, .steps li.complete { color: var(--navy); }
.steps li.current span { border-color: var(--blue); color: white; background: var(--blue); }
.steps li.complete span { border-color: var(--teal); color: white; background: var(--teal); }
fieldset { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 18px; color: var(--navy); font-size: 22px; font-weight: 750; }
.login-logo{display:grid;grid-template-columns:48px 1fr;align-items:center;column-gap:12px;margin-bottom:38px;color:var(--navy)}
.login-logo .brand-mark{grid-row:1/3;width:48px;height:48px;border-radius:13px}
.login-logo strong{align-self:end;font-size:17px;letter-spacing:.09em}
.login-logo small{align-self:start;margin-top:2px;color:var(--muted);font-size:10px}
.compact-logo{margin-bottom:28px}.compact-logo strong{align-self:center}.compact-logo .brand-mark{grid-row:auto}
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; }
.form-actions .primary-button { flex: 1; }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: -11px; }
.strength span { height: 4px; border-radius: 3px; background: var(--line); }
.strength p { grid-column: 1/-1; margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.status-view { text-align: center; }
.status-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 50%; color: white; background: var(--teal); box-shadow: 0 10px 30px rgba(25,165,143,.24); font-size: 32px; }
.protocol-card { display: grid; grid-template-columns: 1fr auto; gap: 4px 18px; margin: 28px 0; padding: 18px 20px; border: 1px solid #cce2ef; border-radius: 12px; text-align: left; background: var(--blue-light); }
.protocol-card span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.protocol-card strong { grid-row: 2; color: var(--navy); font-size: 19px; }
.protocol-card button { grid-row: 1/3; grid-column: 2; align-self: center; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; }
.timeline { display: grid; gap: 0; margin: 0 0 28px; text-align: left; }
.timeline div { position: relative; display: flex; gap: 14px; min-height: 64px; }
.timeline div:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 29px; bottom: -1px; width: 1px; background: var(--line); }
.timeline div > span { z-index: 1; width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 11px; font-weight: 800; }
.timeline .done > span { border-color: var(--teal); color: white; background: var(--teal); }
.timeline .current > span { border-color: var(--blue); color: white; background: var(--blue); }
.timeline p { display: grid; gap: 3px; margin: 3px 0 0; font-size: 13px; }
.timeline small { font-size: 11px; }
.result-card { margin-top: 24px; padding: 20px; border: 1px solid #cce2ef; border-radius: 12px; background: var(--blue-light); }
.result-card h3 { margin: 10px 0 7px; color: var(--navy); }
.result-card p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 20px; color: #805b10; background: #fff0c2; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }

@media (max-width: 900px) {
  .shell { display: block; }
  .brand-panel { display: none; }
  .content-panel { min-height: 100vh; padding: 28px 22px 50px; align-content: start; }
  .mobile-brand { width: min(100%, 590px); display: flex; align-items: center; gap: 10px; margin: 0 auto 54px; color: var(--navy); font-size: 14px; font-weight: 850; letter-spacing: .08em; }
}
@media (max-width: 560px) {
  .content-panel { padding-inline: 18px; }
  .mobile-brand { margin-bottom: 38px; }
  .view-header h2, .status-view h2 { font-size: 35px; }
  .two-columns { grid-template-columns: 1fr; }
  .steps li { font-size: 0; }
  .form-row { align-items: flex-start; }
}
