/* Kobalt + mandarynka: saturated accents on neutral white/gray surfaces. */
:root {
  color-scheme: light;
  --paper: #F2F3F5;
  --primary: #174CE5;
  --primary-dark: #103BC0;
  --ink: #142035;
  --muted: #566274;
  --line: #D8DCE2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.login-shell::before, .login-shell::after { content: ""; position: absolute; width: 137px; height: 146px; border: 1px solid #ffffffd9; border-radius: 16px; background: #174CE5; box-shadow: 0 7px 15px #101C2F0A; pointer-events: none; }
.login-shell::before { left: max(4%, calc(50% - 440px)); top: 19%; transform: rotate(-13deg); background: #F27400; }
.login-shell::after { right: max(4%, calc(50% - 440px)); bottom: 18%; transform: rotate(13deg); background: #174CE5; }
.login-card { width: 100%; max-width: 436px; background: #fff; border: 1px solid #D8DCE2; border-radius: 18px; padding: 39px 36px 31px; box-shadow: 0 20px 70px #101C2F0F; position: relative; z-index: 1; }
.login-card::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 4px; background: linear-gradient(90deg, #174CE5 0 70%, #F27400 70%); border-radius: 0 0 5px 5px; }
.login-brand { display: flex; align-items: center; gap: 10px; color: #142035; font-size: 24px; font-weight: 800; letter-spacing: -.75px; }
.login-brand-symbol, .brand-dot { width: 29px; height: 29px; flex: 0 0 29px; border-radius: 9px 9px 9px 3px; background: var(--primary); transform: rotate(-7deg); position: relative; }
.login-brand-symbol::after, .brand-dot::after { content: ""; position: absolute; width: 12px; height: 12px; right: -4px; top: -4px; border-radius: 4px; background: #F27400; border: 2px solid #fff; }
.login-brand-symbol, .brand-dot { display: grid; place-items: center; color: #fff; font-size: 16px; }
.login-brand-wordmark { white-space: nowrap; }
.brand-pm { font-size: 12px; font-weight: 650; letter-spacing: .8px; margin-left: 5px; }
.login-eyebrow { font-size: 10px; font-weight: 650; letter-spacing: .5px; color: #566274; margin: 10px 0 29px; }
.login-tagline { font-size: 11px; color: #566274; line-height: 1.6; margin: 9px 0 29px; }
h1 { font-size: 28px; line-height: 1.25; letter-spacing: -.75px; margin: 0 0 11px; font-weight: 750; }
.login-intro { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 28px; }
form { display: grid; gap: 8px; }
label { font-size: 12px; font-weight: 650; color: #142035; }
label:not(:first-child) { margin-top: 14px; }
input { border: 1px solid #8490A1; background: #FFFFFF; border-radius: 9px; width: 100%; min-height: 47px; padding: 11px 13px; color: #142035; font-size: 14px; line-height: 1.5; }
input:focus { background: #fff; border-color: var(--primary); }
input::placeholder { color: #566274; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); box-shadow: 0 0 0 1000px #FFFFFF inset; }
button { margin-top: 19px; background: var(--primary); color: #fff; border: 1px solid var(--primary); border-radius: 9px; min-height: 47px; padding: 12px 17px; font-size: 13px; font-weight: 650; cursor: pointer; box-shadow: 0 3px 7px #174CE51b; }
button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
button:disabled { opacity: .6; cursor: wait; }
.login-error { margin: 8px 0 0; background: #FFFFFF; border: 1px solid #B4233C; border-radius: 9px; padding: 12px 13px; color: #B4233C; font-size: 12px; line-height: 1.6; }
.login-footer { border-top: 1px solid var(--line); padding-top: 19px; margin: 27px 0 0; font-size: 10px; color: #566274; }
.noscript { padding: 20px; text-align: center; }
[hidden] { display: none !important; }
@media (max-width: 750px) { .login-shell::before, .login-shell::after { display: none; } }
@media (max-width: 450px) { .login-shell { padding: 25px 16px; } .login-card { padding: 33px 25px 27px; border-radius: 16px; } .login-brand { font-size: 23px; } .login-tagline { margin-bottom: 26px; } h1 { font-size: 26px; } input { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.login-help { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 2px 0 0; }
.login-secondary { background: #fff; color: var(--primary-dark); border-color: var(--line); box-shadow: none; margin-top: 2px; }
.login-secondary:hover { background: #F2F3F5; color: var(--primary-dark); border-color: #174CE5; }
.login-text-button { background: none; color: var(--muted); border: 0; box-shadow: none; margin-top: 0; min-height: 38px; padding: 8px; }
.login-text-button:hover { background: #F2F3F5; color: var(--ink); border: 0; }
#mfa-code { font-variant-numeric: tabular-nums; letter-spacing: .13em; }
