/* Sign-in page: same navy, typeface and forward-leaning stroke as the dashboard. */
:root {
  --navy: #071D42; --navy-2: #0E2A5C; --navy-3: #1A3A73;
  --mist: #EDF0F5; --rule: #D6DCE6; --ink: #14213D; --ink-2: #4A5874; --ink-3: #7A869E;
  --focus: #2F6BFF; --reject: #C0312F; --reject-bg: #FBEAEA;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--mist); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); min-height: 100vh; }

/* Navy side: the logo's slanted strokes, stood up as a rising bar series */
.side { position: relative; overflow: hidden; background: var(--navy); color: #C6D0E2;
  padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.mark { width: 120px; height: auto; }
.bars { position: absolute; left: 48px; right: 48px; bottom: 0; height: 62%;
  display: flex; align-items: flex-end; gap: 4%; pointer-events: none; }
.bars span { flex: 1; height: var(--h); background: var(--navy-2);
  clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%); }
.bars span:last-child { background: #fff; opacity: .9; }
.side-copy { position: relative; max-width: 30ch; }
.side-title { margin: 0 0 6px; color: #fff; font-size: 44px; line-height: 1; font-weight: 800;
  font-style: italic; font-variation-settings: "wdth" 112; letter-spacing: -0.01em; }
.side-line { margin: 0; font-size: 15px; }

/* Form side */
.form-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.card { width: 100%; max-width: 360px; }
.mark-small { display: none; width: 84px; height: auto; margin-bottom: 18px; }
h1 { margin: 0; font-size: 28px; font-weight: 750; font-variation-settings: "wdth" 104; }
.sub { margin: 4px 0 24px; color: var(--ink-2); }
label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; font: inherit; color: var(--ink); padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 4px; background: #fff; }
input:focus { border-color: var(--navy-3); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .18); }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 13px;
  font-weight: 600; color: var(--navy-3); background: none; border: 0; padding: 6px 8px; cursor: pointer; }
.chk { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink-2); margin-top: 16px; }
.chk input { width: 16px; height: 16px; accent-color: var(--navy); }
.go { width: 100%; margin-top: 22px; padding: 11px 16px; font: inherit; font-weight: 650; color: #fff;
  background: var(--navy); border: 1px solid var(--navy); border-radius: 4px; cursor: pointer; }
.go:hover { background: var(--navy-2); }
.go:disabled { opacity: .6; cursor: default; }
.err { margin-bottom: 4px; padding: 10px 12px; border-radius: 4px; background: var(--reject-bg); color: var(--reject);
  font-size: 14px; border-left: 3px solid var(--reject); }
.foot { margin: 28px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .side { display: none; }
  .mark-small { display: block; }
}
@media (prefers-reduced-motion: no-preference) {
  .bars span { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; transform-origin: bottom; }
  .bars span:nth-child(2) { animation-delay: .05s; } .bars span:nth-child(3) { animation-delay: .1s; }
  .bars span:nth-child(4) { animation-delay: .15s; } .bars span:nth-child(5) { animation-delay: .2s; }
  .bars span:nth-child(6) { animation-delay: .25s; }
  @keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

.mfa-steps{margin:4px 0 8px 18px;padding:0;font-size:14px;line-height:1.5}
.mfa-qr{display:flex;justify-content:center;margin:6px 0 10px}
.mfa-qr svg{display:block;width:200px;height:200px;aspect-ratio:1/1;background:#fff;border-radius:6px}
.mfa-key-l{font-size:13px;margin:4px 0 2px;opacity:.8}
.mfa-key{font:600 15px/1.4 ui-monospace,Menlo,Consolas,monospace;letter-spacing:.06em;word-break:break-all;margin:0 0 6px;user-select:all}
.mfa-link{font-size:13px;margin:0 0 10px}
.mfa-back{font-size:13px;margin:12px 0 0;text-align:center}
[hidden]{display:none !important}
.hint-in{font-weight:400;opacity:.7;font-size:12px}

.staging-tag { display: inline-block; margin: -4px 0 10px; padding: 3px 10px; border-radius: 999px; background: #F2C14E; color: #10213F; font-size: 13px; font-weight: 700; }
.staging-tag[hidden] { display: none; }
