@import "./halo-ring-switch.css";

/* The account dialog supplies its own entrance over the existing page. */
@view-transition { navigation: none; }
.pass-window.account-window {
  width: min(430px, calc(100% - 24px));
  height: fit-content;
  min-height: 0;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border-radius: var(--halo-corner-window);
}
.account-window .pass-bar { min-height: 46px; height: 46px; padding-inline: 20px 8px; }
.account-window [hidden] { display: none !important; }
.account-window .pass-close { width: 42px; height: 42px; }
.account-window-body { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px; }
.auth-intro { margin-bottom: 16px; }
.auth-intro h1 { margin: 0; color: #17293e; font-size: clamp(25px, 4vw, 30px); font-weight: 600; letter-spacing: -.05em; line-height: 1.18; }
.auth-intro h1:focus { outline: none; }
.auth-intro p, .account-window .field-help, .account-window .local-note,
.account-window .error-banner, .account-window .success-note, .auth-links p { margin: 0; }
.auth-intro p { margin-top: 5px; font-size: 13px; color: #455772; overflow-wrap: anywhere; }
.auth-form-surface {
  padding: 16px;
  background: rgb(255 255 255 / 76%);
  border: 1px solid var(--pass-edge);
  border-radius: var(--halo-corner-card);
  box-shadow: inset 0 1px white;
}
.auth-fields { display: grid; gap: 14px; margin: 0; }
.account-window label { display: block; font-size: 13px; font-weight: 500; }
.account-window input:not([type=checkbox]) {
  width: 100%; min-height: 44px; margin-top: 5px; border: 1px solid #93a7c1; border-radius: var(--halo-corner-control);
  background: #fcfdff; color: #162c45; padding: 8px 11px; font: 400 15px/1.4 var(--font-halo);
}
.account-window input[autocomplete=one-time-code] { letter-spacing: .25em; font-variant-numeric: tabular-nums; }
.account-window :is(a, input, button):focus-visible { outline: 2px solid #326bd2; outline-offset: 2px; }
.account-window label.check-label { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; line-height: 1.5; cursor: pointer; }
.account-window .check-label input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #2855a0; }
.account-window .check-label strong { font-weight: 600; }
.account-window .field-help, .remember-choice small { display: block; margin-top: 3px; color: #52627a; font-size: 11px; line-height: 1.5; font-weight: 400; }
.account-window .remember-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.remember-choice strong { font-weight: 600; }
.remember-choice small { margin-top: 1px; text-wrap: pretty; }
.remember-choice:has(input:disabled) { opacity: .62; cursor: default; }
.account-window a { color: #194d80; text-underline-offset: 3px; }
.account-window .auth-primary, .account-window .auth-secondary {
  min-height: 44px; border-radius: var(--halo-corner-control); font: 600 13px/1.4 var(--font-halo); cursor: pointer;
}
.account-window .auth-primary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; background: #1d426b; color: white; border: 1px solid #284c76; }
.account-window .auth-primary:disabled, .account-window .auth-secondary:disabled { opacity: .62; cursor: default; }
.auth-code-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.account-window .auth-secondary { flex: 1; padding: 6px 9px; border: 1px solid var(--pass-edge); color: #25425f; background: transparent; }
.auth-links { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--pass-edge); font-size: 12px; }
.auth-links a { font-weight: 600; }
.account-window .local-note { margin-bottom: 12px; font-size: 12px; color: #2f4f71; }
.account-window .error-banner, .account-window .success-note { font-size: 12px; overflow-wrap: anywhere; }
.account-window .error-banner { color: #942e32; }
.account-window .success-note { color: #24594a; }
@media (max-width: 480px) {
  .account-window-body { padding: 16px; }
  .auth-form-surface { padding: 14px; }
  .account-window input:not([type=checkbox]) { font-size: 16px; }
}
@media (forced-colors: active) {
  .account-window .auth-primary { border-color: ButtonText; }
}
.auth-script-note { position:fixed; z-index:5; inset:auto 12px 12px; margin:auto; max-width:430px; padding:16px; border:1px solid #93a7c1; border-radius:var(--halo-corner-card); background:white; color:#17293e; }
