
.savia-loading {
  box-sizing: border-box;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #fff;
  color: #737373;
  font: 400 .875rem/1.5 "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
}
.savia-loading[hidden] { display: none; }
html.dark .savia-loading { background: #171717; color: #a3a3a3; }
.savia-loading-mark { position: relative; display: flex; align-items: center; justify-content: center; width: 6rem; height: 6rem; }
.savia-loading-mark img { width: 4rem; height: 4rem; border-radius: 1rem; }
.savia-loading p { margin: 0; }
.savia-loading .savia-ring { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 9999px; }
.savia-loading .savia-ring::before,
.savia-loading .savia-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4.5px), #000 calc(100% - 4px));
}
.savia-loading .savia-ring::before { background: rgb(13 148 136 / .16); }
.savia-loading .savia-ring::after { background: conic-gradient(from 0deg, #0d9488 0 26%, transparent 26% 100%); animation: savia-loading-spin .9s linear infinite; }
@keyframes savia-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .savia-loading .savia-ring::after { animation: none; } }
:root {
  --background: #f7f9fb;
  --foreground: #102a43;
  --muted: #61758a;
  --border: #d9e2ec;
  --ring: #167d9a;
  --primary: #087f8c;
  --primary-foreground: #ffffff;
  --aside: #102a43;
  --aside-muted: #c7d9e8;
  --error: #b42318;
}

* { box-sizing: border-box; }
html { background: var(--background); color: var(--foreground); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.oauth-screen { display: grid; min-height: 100svh; grid-template-columns: minmax(0, 1fr) minmax(390px, 44%); }
.oauth-workspace { display: flex; min-height: 100%; flex-direction: column; padding: 2rem clamp(1.5rem, 6vw, 6rem) 1.5rem; }
.savia-brand { align-items: center; color: var(--foreground); display: inline-flex; font-size: 1.05rem; font-weight: 720; gap: .7rem; letter-spacing: -.02em; text-decoration: none; width: max-content; }
.savia-brand-logo { display: block; height: 2.2rem; object-fit: contain; width: auto; }
.savia-mark { border-radius: .55rem; display: inline-block; height: 2rem; object-fit: cover; width: 2rem; }
.oauth-form-column { margin: auto; max-width: 27rem; padding: 3.5rem 0; width: 100%; }
.oauth-heading { margin-bottom: 2rem; }
.oauth-heading h1, .oauth-heading h2 { color: var(--foreground); font-size: clamp(1.8rem, 2.8vw, 2.35rem); letter-spacing: -.04em; line-height: 1.07; margin: .5rem 0 .75rem; text-wrap: balance; }
.oauth-heading h2 { font-size: 1.55rem; }
.oauth-heading p { color: var(--muted); font-size: .96rem; line-height: 1.55; margin: 0; text-wrap: pretty; }
.oauth-kicker, .oauth-aside-eyebrow { color: var(--primary) !important; font-size: .76rem !important; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.oauth-form { display: grid; gap: 1.25rem; }
.oauth-field { display: grid; gap: .55rem; }
[data-slot="label"] { color: var(--foreground); font-size: .88rem; font-weight: 660; }
[data-slot="input"] { background: white; border: 1px solid var(--border); border-radius: .55rem; color: var(--foreground); height: 2.85rem; padding: .6rem .8rem; width: 100%; }
[data-slot="input"]:has(+ .oauth-password-toggle) { padding-inline-end: 3.25rem; }
[data-slot="input"]::placeholder { color: #829ab1; }
[data-slot="input"]:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px rgb(22 125 154 / .18); outline: 0; }
[data-slot="input"]:focus-visible + .oauth-password-toggle { color: var(--primary); }
.oauth-password-control { position: relative; }
.oauth-password-toggle { align-items: center; background: transparent; border: 0; border-radius: .4rem; color: var(--muted); cursor: pointer; display: inline-flex; height: 2.45rem; inset-block-end: .2rem; inset-inline-end: .2rem; justify-content: center; padding: 0; position: absolute; transition: background-color 150ms ease, color 150ms ease; width: 2.45rem; }
.oauth-password-toggle:hover { background: #edf7f7; color: #175c68; }
.oauth-password-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.oauth-password-toggle-icon { height: 1.15rem; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 1.15rem; }
.oauth-password-toggle-icon[data-oauth-password-toggle-icon="hide"] { display: none; }
.oauth-password-toggle[aria-pressed="true"] [data-oauth-password-toggle-icon="show"] { display: none; }
.oauth-password-toggle[aria-pressed="true"] [data-oauth-password-toggle-icon="hide"] { display: block; }
[data-slot="button"] { align-items: center; border: 1px solid transparent; border-radius: .55rem; cursor: pointer; display: inline-flex; font-weight: 700; justify-content: center; min-height: 2.85rem; padding: .7rem 1rem; transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
[data-slot="button"][data-variant="default"] { background: var(--primary); color: var(--primary-foreground); }
[data-slot="button"][data-variant="default"]:hover { background: #066b77; box-shadow: 0 .55rem 1.25rem rgb(8 127 140 / .22); transform: translateY(-1px); }
[data-slot="button"][data-variant="outline"] { background: white; border-color: var(--border); color: var(--foreground); }
[data-slot="button"]:focus-visible { box-shadow: 0 0 0 3px rgb(22 125 154 / .24); outline: 0; }
[data-slot="button"]:disabled { cursor: wait; opacity: .65; transform: none; }
.oauth-submit { width: 100%; }
.oauth-two-factor, .oauth-enrollment { border-top: 1px solid var(--border); margin-top: 1.75rem; padding-top: 1.75rem; }
.oauth-heading-compact { margin-bottom: 1.4rem; }
.oauth-recovery { color: var(--muted); font-size: .9rem; margin-top: 1.25rem; }
.oauth-recovery summary { cursor: pointer; font-weight: 650; }
.oauth-recovery .oauth-form { margin-top: 1.1rem; }
.oauth-account-actions { margin: .85rem 0 1.25rem; text-align: center; }
.oauth-account-actions button { background: transparent; border: 0; color: var(--primary); cursor: pointer; font-size: .88rem; font-weight: 650; padding: .45rem; text-decoration: underline; text-underline-offset: .18em; }
.oauth-account-actions button:hover { color: color-mix(in srgb, var(--primary) 85%, var(--foreground)); }
.oauth-account-actions button:focus-visible { border-radius: .25rem; outline: 2px solid var(--ring); outline-offset: 2px; }
.oauth-federated { margin-top: 1.25rem; }
.oauth-provider-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
[data-slot="button"].oauth-provider { display: inline-flex; gap: .6rem; min-height: 2.5rem; padding: .45rem .9rem; color: #1f1f1f; border-color: #747775; font-size: .85rem; font-weight: 500; }
.oauth-provider-logo { display: block; flex-shrink: 0; height: 18px; width: 18px; }
[data-slot="button"].oauth-provider:hover { background: #f2f2f2; }
[data-slot="button"].oauth-provider:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; box-shadow: none; }
.oauth-login-divider { align-items: center; color: var(--muted); display: flex; font-size: .8rem; gap: 1rem; margin-bottom: .85rem; }
.oauth-login-divider::before, .oauth-login-divider::after { background: var(--border); content: ""; flex: 1; height: 1px; }
.oauth-account-actions .oauth-enterprise-login { align-items: center; color: var(--muted); display: inline-flex; gap: .5rem; min-height: 2.5rem; padding: .45rem .65rem; text-decoration: none; font-size: .82rem; font-weight: 500; }
.oauth-account-actions .oauth-enterprise-login:hover { color: var(--primary); text-decoration: underline; }
.oauth-forgot-link { background: transparent; border: 0; border-radius: .25rem; color: var(--primary); cursor: pointer; font-size: .82rem; justify-self: end; margin-top: -.6rem; min-height: 2rem; padding: .25rem 0; text-underline-offset: .18em; }
.oauth-forgot-link:hover { text-decoration: underline; }
.oauth-forgot-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.oauth-account-panel { border-top: 1px solid var(--border); margin-top: 1.35rem; padding-top: 1.5rem; }
.oauth-action-link { align-items: center; background: var(--primary); border-radius: .55rem; color: var(--primary-foreground); display: inline-flex; font-weight: 700; justify-content: center; min-height: 2.85rem; padding: .7rem 1rem; text-decoration: none; }
.oauth-action-link:hover { background: color-mix(in srgb, var(--primary) 90%, var(--primary-foreground)); }
.oauth-action-link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.oauth-totp-qr { background: white; border: 1px solid var(--border); border-radius: .75rem; display: block; height: 13rem; margin: 1rem auto 1.25rem; padding: .75rem; width: 13rem; }
.oauth-manual-setup { color: var(--muted); font-size: .9rem; margin: 0 0 1.25rem; }
.oauth-manual-setup summary { cursor: pointer; font-weight: 650; }
.oauth-manual-setup p { margin: .9rem 0 .45rem; }
.oauth-enrollment code { background: #eaf2f8; border-radius: .4rem; color: #243b53; display: block; font-size: .75rem; line-break: anywhere; margin: 0; padding: .8rem; }
.oauth-enrollment ul, .oauth-permissions ul { color: var(--foreground); display: grid; gap: .45rem; margin: .75rem 0 1.3rem; padding-left: 1.2rem; }
.oauth-permissions { background: #edf7f7; border-radius: .75rem; margin-bottom: 1.4rem; padding: 1rem 1.1rem; }
.oauth-permissions > p { color: #175c68; font-size: .78rem; font-weight: 760; letter-spacing: .06em; margin: 0; text-transform: uppercase; }
#oauth-status { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 1.25rem 0 0; min-height: 1.35rem; }
#oauth-status:not(:empty) { background: #edf7f7; border-radius: .45rem; color: #175c68; padding: .65rem .75rem; }
.oauth-footer { color: #829ab1; font-size: .76rem; margin: 0; }
.oauth-aside { background: var(--aside); color: white; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 3.5rem clamp(2.5rem, 5vw, 5rem); position: relative; }
.oauth-aside::before { border: 1px solid rgb(153 246 228 / .18); border-radius: 999px; content: ""; height: 34rem; position: absolute; right: -13rem; top: -13rem; width: 34rem; }
.oauth-aside::after { background: #0f766e; border-radius: 999px; bottom: -8rem; content: ""; height: 20rem; left: -8rem; opacity: .68; position: absolute; width: 20rem; }
.oauth-aside > * { position: relative; z-index: 1; }
.oauth-aside-mark .savia-mark { border-radius: .7rem; box-shadow: 0 4px 16px rgb(0 0 0 / .28); height: 2.5rem; width: 2.5rem; }
.oauth-aside-illustration { align-items: center; display: flex; justify-content: center; margin: 1rem 0; }
.oauth-insurance-ai { height: auto; max-width: 22rem; overflow: visible; width: min(100%, 22rem); }
.oauth-insurance-ai-connection, .oauth-insurance-ai-circuit { stroke: rgb(153 246 228 / .72); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.oauth-insurance-ai-orbit { stroke: rgb(199 217 232 / .24); stroke-linecap: round; stroke-width: 1.25; }
.oauth-insurance-ai-shield { fill: rgb(8 127 140 / .18); stroke: #99f6e4; stroke-linejoin: round; stroke-width: 2.5; }
.oauth-insurance-ai-core { fill: rgb(255 255 255 / .08); stroke: #ffffff; stroke-width: 1.6; }
.oauth-insurance-ai-node { fill: #99f6e4; stroke: var(--aside); stroke-width: 3; }
.oauth-aside-eyebrow { color: #99f6e4 !important; }
.oauth-aside-title { font-size: clamp(2.2rem, 4.4vw, 4.25rem); font-weight: 720; letter-spacing: -.045em; line-height: .99; margin: .75rem 0 1.25rem; max-width: 8ch; text-wrap: balance; }
.oauth-aside-copy { color: var(--aside-muted); font-size: 1rem; line-height: 1.6; margin: 0; max-width: 28ch; }
@font-face { font-family: SaviaManrope; src: url('/login/Manrope-ExtraBold.ttf') format('truetype'); font-style: normal; font-weight: 800; font-display: swap; }
.oauth-aside.has-login-animation { align-items: center; background: #0e2d46; justify-content: center; padding: clamp(1.25rem, 3vw, 3rem); }
.oauth-aside.has-login-animation::before, .oauth-aside.has-login-animation::after { display: none; }
.oauth-login-animation { align-items: center; display: flex; flex-direction: column; position: relative; width: min(100%, 34rem, calc(100svh - 8rem)); }
.oauth-login-animation-frame { aspect-ratio: 1; width: 100%; }
.oauth-login-animation-frame svg { display: block; height: 100%; overflow: visible; width: 100%; }
.oauth-login-animation-frame.logo-hover svg { animation: oauth-logo-hover-pulse 430ms cubic-bezier(.2,.8,.25,1); }
.oauth-login-animation-frame.logo-hover svg g { filter: drop-shadow(0 0 5px #51e0ca88); }
.oauth-login-animation-robot { aspect-ratio: 1; left: 58%; opacity: 0; pointer-events: none; position: absolute; top: 23%; transform: translate(18px, 8px) scale(.78); transform-origin: 50% 80%; transition: opacity 160ms ease-out, transform 220ms cubic-bezier(.16, 1, .3, 1); width: 34%; z-index: 2; }
.oauth-login-animation-robot.robot-visible { opacity: 1; transform: translate(0, 0) scale(1); }
.oauth-login-animation-robot-frame, .oauth-login-animation-robot-frame svg { display: block; height: 100%; overflow: visible; width: 100%; }
.oauth-login-animation-wordmark { color: #f4f7fa; font: 800 clamp(3.25rem, 5vw, 4.75rem)/1 SaviaManrope, Arial, sans-serif; letter-spacing: -.055em; margin: -2rem 0 0; }
.oauth-login-animation-wordmark span:last-child { color: #45dfc6; }
.oauth-login-animation-wordmark span:last-child.ai-hover { animation: oauth-ai-hover-pop 380ms cubic-bezier(.2,.8,.25,1); display: inline-block; transform-origin: 48% 75%; }
@keyframes oauth-logo-hover-pulse { 0% { transform: scale(1); } 38% { transform: scale(1.045); } 72% { transform: scale(.99); } 100% { transform: scale(1); } }
@keyframes oauth-ai-hover-pop { 0% { color: #45dfc6; transform: translateY(0) scale(1) rotate(0); } 35% { color: #82d957; transform: translateY(-12px) scale(1.14,.9) rotate(-5deg); } 62% { color: #51c34b; transform: translateY(2px) scale(.94,1.1) rotate(2deg); } 82% { color: #45dfc6; transform: translateY(-4px) scale(1.04,.98) rotate(0); } 100% { color: #45dfc6; transform: translateY(0) scale(1) rotate(0); } }
@media (max-width: 900px) { .oauth-screen { grid-template-columns: 1fr; } .oauth-aside { display: none; } .oauth-aside.has-login-animation { display: flex; min-height: clamp(13rem, 55vw, 22rem); order: -1; padding: 1rem; } .oauth-login-animation { width: min(100%, clamp(9rem, 35vw, 13rem)); } .oauth-login-animation-wordmark { font-size: clamp(2.25rem, 8vw, 3.5rem); margin-top: -1rem; } .oauth-workspace { min-height: auto; padding: 1.5rem clamp(1.25rem, 8vw, 3.5rem); } .oauth-form-column { padding: 3.25rem 0; } }
@media (prefers-reduced-motion: reduce) { .oauth-login-animation-robot { transition: none; } .oauth-login-animation-frame.logo-hover svg, .oauth-login-animation-wordmark span:last-child.ai-hover { animation: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
