@font-face {
  font-family: Manrope;
  src: url('./Manrope.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, system-ui, sans-serif;
  color: #09164d;
  background: #faf9f6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #09164d;
  --blue: #2946d9;
  --muted: #56618d;
  --line: #d5ddee;
  --paper: #faf9f6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 280px; margin: 0; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #9eafff;
  outline-offset: 4px;
}

.page-shell { width: min(1224px, 100%); margin: 0 auto; padding: 32px 40px 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 800; letter-spacing: -1.3px; }
.brand-mark { display: block; width: 30px; height: 30px; color: var(--blue); }
.workspace-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 92px; align-items: center; padding: 70px 0 58px; }

.journey-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 586px; overflow: hidden; padding: 40px; border-radius: 24px; color: #fff; background: var(--blue); }
.panel-topline { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.8px; }
.panel-topline::before { content: ''; display: block; width: 7px; height: 7px; border-radius: 50%; background: #dce6ff; }
.journey-copy { position: relative; z-index: 1; margin: 0; max-width: 370px; font-size: clamp(36px, 4vw, 49px); font-weight: 600; line-height: 1.16; letter-spacing: -2.2px; }
.journey-copy span { color: #c8d5ff; }
.panel-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid #ffffff3d; }
.panel-foot p { margin: 0; max-width: 210px; color: #e7ecff; font-size: 12px; line-height: 1.7; }
.route-symbol { position: absolute; width: 330px; height: 330px; right: -120px; top: 150px; border: 1px solid #ffffff26; border-radius: 50%; }
.route-symbol::before, .route-symbol::after { content: ''; position: absolute; inset: 45px; border: 1px solid #ffffff26; border-radius: 50%; }
.route-symbol::after { inset: 90px; }
.route-arrow { width: 38px; height: 38px; color: #dce6ff; flex: none; }

.form-column { width: 100%; max-width: 420px; padding: 12px 0; }
.eyebrow { margin: 0 0 15px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
h1 { margin: 0; max-width: 420px; font-size: clamp(30px, 3vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -1.5px; }
.intro { margin: 16px 0 30px; max-width: 360px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.auth-form { display: grid; gap: 20px; }
.field { display: grid; gap: 9px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; }
.field input { width: 100%; min-width: 0; min-height: 52px; padding: 14px 15px; border: 1px solid #b9c4dd; border-radius: 10px; color: var(--navy); background: #fff; font-size: 14px; }
.field input:hover { border-color: #8796bd; }
.field input:focus { border-color: var(--blue); }
.field input[readonly] { color: var(--muted); background: #f0f2f8; }
.field input[aria-invalid='true'] { border-color: #a03239; }
.field-hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 78px; }
.password-toggle { position: absolute; right: 3px; top: 3px; min-width: 69px; min-height: 46px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.password-toggle:hover { background: #f0f3ff; color: var(--blue); }
.primary-button, .secondary-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 13px 20px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; text-decoration: none; transition: background-color 180ms, border-color 180ms; }
.primary-button { color: #fff; background: var(--blue); }
.primary-button:hover { background: #2039bd; }
.primary-button:disabled { background: #6b7edc; }
.secondary-button { color: var(--navy); border-color: #b9c4dd; background: transparent; }
.secondary-button:hover { border-color: var(--blue); background: #edf1ff; }
.button-arrow { width: 18px; height: 18px; flex: none; }
.fine-print { margin: 22px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.fine-print strong { color: var(--navy); font-weight: 600; }
.feedback { margin: 18px 0 0; padding: 13px 15px; border: 1px solid #d5ddee; border-radius: 10px; color: var(--navy); background: #eaf1ff; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.feedback[data-tone='error'] { border-color: #efd1d2; color: #852b32; background: #fff2f1; }
.feedback[data-tone='success'] { border-color: #cce3d8; color: #225d46; background: #eef8f1; }
.status-loading { color: var(--muted); font-size: 12px; line-height: 1.7; }
.status-loading::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }

.session-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #225d46; font-size: 11px; font-weight: 700; }
.session-heading::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2e8362; }
.account-card { display: grid; gap: 18px; margin: 26px 0; padding: 21px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-line { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.account-line dt { color: var(--muted); font-size: 11px; line-height: 1.8; }
.account-line dd { max-width: 255px; margin: 0; color: var(--navy); font-size: 12px; font-weight: 600; line-height: 1.7; text-align: right; overflow-wrap: anywhere; }
.access-note { margin: 0 0 25px; padding-left: 15px; border-left: 2px solid #b7c5ff; color: var(--muted); font-size: 12px; line-height: 1.8; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }
.footer-dot { display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #7c8bb7; vertical-align: 1px; }
.noscript-note { margin: 20px 0; padding: 16px; border: 1px solid #efd1d2; border-radius: 10px; color: #852b32; background: #fff2f1; font-size: 12px; line-height: 1.8; }

@media (min-width: 1500px) { .page-shell { padding-top: 45px; } .auth-layout { padding-top: 85px; padding-bottom: 75px; } }
@media (max-width: 1020px) {
  .page-shell { padding-right: 30px; padding-left: 30px; }
  .auth-layout { gap: 52px; }
  .journey-panel { min-height: 560px; padding: 32px; }
  .journey-copy { font-size: 40px; }
}
@media (max-width: 760px) {
  .page-shell { max-width: 510px; padding: 24px 24px 20px; }
  .auth-layout { display: block; padding: 56px 0 45px; }
  .journey-panel { display: none; }
  .form-column { max-width: none; padding: 0; }
  .workspace-label { font-size: 10px; }
  .wordmark { font-size: 23px; }
  .brand-mark { width: 27px; height: 27px; }
  h1 { max-width: 360px; font-size: 34px; }
  .intro { margin-bottom: 27px; }
  .page-footer { align-items: flex-start; gap: 14px; font-size: 9px; }
}
@media (max-width: 360px) {
  .page-shell { padding-right: 20px; padding-left: 20px; }
  .auth-layout { padding-top: 44px; }
  h1 { font-size: 30px; }
  .workspace-label { max-width: 90px; text-align: right; }
  .account-line { display: block; }
  .account-line dd { margin-top: 4px; max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-top: 19px; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; border-radius: 3px; color: var(--blue); background: transparent; font-size: 11px; font-weight: 700; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: #2039bd; }
.text-button:disabled { opacity: .55; }
.back-link { margin-top: 15px; }
.session-signout { margin-top: 12px; }
.otp-input { max-width: 280px; letter-spacing: 8px; font-size: 24px !important; font-variant-numeric: tabular-nums; }
.enrollment-open .auth-layout, .catalog-open .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 50px; }
.enrollment-open .journey-panel, .catalog-open .journey-panel { display: none; }
.enrollment-open .form-column, .catalog-open .form-column { max-width: 960px; margin: 0 auto; }
.enrollment-open h1, .catalog-open h1 { max-width: 700px; }
.enrollment-intro { max-width: 590px; }
.enrollment-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--line); }
.enrollment-step { min-width: 0; }
.step-number { margin: 0 0 12px; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1.5px; }
.enrollment-step h2 { margin: 0 0 12px; font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: -.5px; }
.step-copy { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.qr-container { display: flex; justify-content: center; align-items: center; width: min(260px, 100%); min-height: 240px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-container canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.manual-details { margin-top: 16px; max-width: 340px; }
.manual-details summary { min-height: 40px; padding: 9px 0; color: var(--blue); font-size: 11px; font-weight: 700; cursor: pointer; }
.manual-details .field-hint { margin: 5px 0 10px; }
.manual-secret { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--navy); background: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; user-select: all; }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.backup-codes li { padding: 10px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; text-align: center; }
.backup-codes code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.5; user-select: all; }
.saved-confirmation { display: flex; align-items: flex-start; gap: 10px; min-height: 48px; padding: 10px 0; font-size: 12px; font-weight: 600; line-height: 1.8; cursor: pointer; }
.saved-confirmation input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.enrollment-finish { display: grid; gap: 17px; max-width: 360px; margin-top: 35px; }
.enrollment-finish .primary-button { justify-content: space-between; }
.catalog-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.catalog-notes span { padding: 7px 10px; border-radius: 6px; color: var(--muted); background: #edf1fb; font-size: 10px; font-weight: 700; }
.catalog-table-wrap { overflow-x: auto; margin: 25px 0; }
.catalog-table { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.7; text-align: left; }
.catalog-table th { padding: 13px 12px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.catalog-table td { padding: 17px 12px; border-bottom: 1px solid #e4e8f1; vertical-align: top; overflow-wrap: anywhere; }
.catalog-table th:first-child, .catalog-table td:first-child { padding-left: 0; }
.catalog-table th:last-child, .catalog-table td:last-child { padding-right: 0; }
.catalog-table td:nth-child(2) { max-width: 200px; }
.catalog-cell-note { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.catalog-back { width: auto; min-width: 180px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .enrollment-open .auth-layout, .catalog-open .auth-layout { padding-top: 43px; }
  .enrollment-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 26px; padding-top: 24px; }
  .enrollment-step + .enrollment-step { padding-top: 25px; border-top: 1px solid var(--line); }
  .qr-container { min-height: 220px; width: min(250px, 100%); }
  .manual-details { max-width: none; }
  .enrollment-finish { margin-top: 28px; }
  .catalog-table { min-width: 620px; }
}
