@font-face { font-family: 'Segoe UI Webfont'; src: local('Segoe UI'); font-weight: 400; }
@font-face { font-family: 'Segoe UI Webfont'; src: local('Segoe UI Semibold'); font-weight: 600; }
:root { font-family: 'Segoe UI Webfont', 'Segoe UI', -apple-system, 'Helvetica Neue', Roboto, sans-serif; font-size: 15px; color: #1b1b1b; --blue: #0067b8; --error: #e81123; color-scheme: light; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: #f2f2f2 url('background.svg') center / cover fixed; }
button, input, select { font: inherit; }
button, a { cursor: pointer; touch-action: manipulation; }
a, .link { color: var(--blue); text-decoration: none; }
a:hover, .link:hover { color: #666; text-decoration: underline; }
button:focus-visible, a:focus-visible { outline: 1px dashed #1b1b1b; outline-offset: 2px; }
.outer { min-height: calc(100svh - 28px); display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.auth-stack { width: 440px; max-width: 100%; }
.auth-card { padding: 44px; background: #fff; box-shadow: 0 2px 6px #0003; position: relative; overflow: hidden; min-height: 338px; }
.brand { display: block; width: 108px; height: 24px; margin-bottom: 16px; }
.brand img { display: block; }
h1 { font-family: 'Segoe UI', sans-serif; font-size: 24px; line-height: 28px; font-weight: 600; margin: 0 0 12px; }
h1:focus { outline: none; }
h2 { font-size: 24px; font-weight: 600; }
p { line-height: 20px; }
.description { margin: 0 0 16px; }
.description:empty { display: none; }
.view { animation: slide-in .367s cubic-bezier(.1,.9,.2,1); }
.view[data-backward] { animation-name: slide-back; }
.field { position: relative; margin: 0 2px 16px; }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field input, .field select { width: 100%; height: 36px; padding: 6px 0; background: #fff; border: 0; border-bottom: 1px solid #666; outline: none; border-radius: 0; color: #1b1b1b; }
.field input::placeholder { color: #666; opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--blue); }
.field input[aria-invalid=true] { border-color: var(--error); }
.field:has(.reveal) input { padding-right: 36px; }
.reveal { position: absolute; right: 0; top: 0; width: 32px; height: 36px; border: 0; background: transparent; color: #666; }
.reveal svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; vertical-align: middle; }
.link { background: none; border: 0; padding: 0; font-size: 13px; }
.account-links { margin: 0 2px; font-size: 13px; line-height: 20px; }
.account-links p { margin: 0 0 16px; }
.account-links p:last-child { margin-bottom: 0; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.primary, .secondary { min-width: 108px; height: 32px; padding: 4px 12px; border: 0; border-radius: 0; font-weight: 400; }
.primary { color: white; background: var(--blue); }
.primary:hover { background: #005da6; }
.primary:active { background: #004578; }
.secondary { color: #1b1b1b; background: #ccc; }
.secondary:hover { background: #b2b2b2; }
button:disabled { cursor: wait; }
.auth-card[aria-busy=true] .view { opacity: .65; }
.below { font-size: 13px; margin: 16px 0 0; }
.identity { display: flex; align-items: center; gap: 4px; margin: 0 0 16px; }
.identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { width: 24px; height: 24px; font-size: 20px; background: transparent; border: 0; padding: 0; border-radius: 50%; }
.back:hover { background: #e6e6e6; }
.error { color: var(--error); font-size: 15px; line-height: 20px; margin: 0 0 12px; }
.error:empty { display: none; }
.external-options { background: #fff; box-shadow: 0 2px 6px #0003; margin-top: 20px; padding: 0; }
.provider { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 16px; padding: 12px 44px; border: 0; background: transparent; color: #1b1b1b; text-align: left; }
.provider:hover { background: #e5e5e5; }
.provider svg { width: 28px; height: 24px; flex-shrink: 0; }
.provider[data-go] svg { fill: none; stroke: #444; stroke-width: 1.3; }
.external-options p { line-height: 17.5px; font-size: 13px; color: #444; margin: 8px 44px; }
.tile { display: flex; align-items: center; gap: 20px; width: calc(100% + 88px); min-height: 72px; margin: 0 -44px; padding: 16px 52px; background: #fff; color: #1b1b1b; border: 0; text-align: left; }
.tile:hover, .tile:nth-of-type(odd) { background: #e5e5e5; }
.tile svg { width: 32px; height: 32px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tile small { display: block; font-size: 12px; line-height: 16px; }
.checkbox { display: flex; gap: 8px; align-items: center; margin: 20px 0; font-size: 13px; line-height: 20px; }
.checkbox input { accent-color: var(--blue); width: 20px; height: 20px; margin: 0; }
.progress { position: absolute; top: 0; left: 0; width: 100%; height: 4px; overflow: hidden; }
.progress span { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); left: -5%; animation: loading 1.6s cubic-bezier(.1,.7,.9,.3) infinite; }
.progress span:nth-child(2) { animation-delay: .12s; }
.progress span:nth-child(3) { animation-delay: .24s; }
.progress span:nth-child(4) { animation-delay: .36s; }
.progress span:nth-child(5) { animation-delay: .48s; }
.success-mark { color: var(--blue); font-size: 36px; margin-bottom: 12px; }
footer { position: fixed; bottom: 0; right: 0; padding: 6px 10px; font-size: 12px; }
footer nav { display: flex; gap: 20px; align-items: center; }
footer button { font-size: 12px; padding: 0; border: 0; color: #000; background: transparent; }
footer button:hover { text-decoration: underline; }
footer .more { font-size: 19px; line-height: 16px; letter-spacing: 2px; }
dialog { width: calc(100% - 40px); max-width: 440px; padding: 32px; border: 0; box-shadow: 0 2px 6px #0003; }
dialog::backdrop { background: #0005; }
@keyframes slide-in { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-back { from { opacity: 0; transform: translateX(-100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes loading { from { left: -5%; } to { left: 105%; } }
@media (max-width: 600px) {
  body { background: #fff; }
  .outer { min-height: calc(100svh - 28px); align-items: flex-start; padding: 0 0 40px; }
  .auth-stack { width: 100%; }
  .auth-card { padding: 24px; min-height: 318px; box-shadow: none; }
  .external-options { box-shadow: none; border: 1px solid #999; }
  .provider { padding: 12px 24px; }
  .external-options p { margin: 8px 24px; }
  .tile { width: calc(100% + 48px); margin: 0 -24px; padding: 16px 24px; }
  footer { left: 0; right: auto; padding: 6px 32px; background: #fff; }
}
@media (max-height: 640px) and (min-width: 601px) { .outer { align-items: flex-start; } footer { position: relative; display: flex; justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } .progress span { left: 48%; } .progress span:nth-child(2) { left: 49%; } .progress span:nth-child(3) { left: 50%; } .progress span:nth-child(4) { left: 51%; } .progress span:nth-child(5) { left: 52%; } }

.view[data-step=signin] .actions { margin-top: 26px; }

.view[data-step=provider-error] h1 { margin-bottom: 20px; }
.provider-error-message { margin-bottom: 32px; }
