/* Public account forms use the current website theme. */
@font-face {
  font-family: "Inter";
  src: url("./fonts/cineslate-ui-inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cineslate Brand";
  src: url("./BebasNeue-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Google Sans";
  src: url("./fonts/google-sans-medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
.auth-page {
  color-scheme: dark;
  --bg: #080a0b;
  --card: #101416;
  --line: #292e30;
  --text: #f4f5f3;
  --dim: #a6acae;
  --muted: #899497;
  --cyan: #2bd7d8;
  --cyan-soft: #91e8e1;
  --input-bg: #080c0e;
  --input-text: #f4f5f3;
  --auth-font: "Inter", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--auth-font);
  -webkit-font-smoothing: antialiased;
}
.auth-page::before, .auth-page::after { content: none; }
.auth-page button, .auth-page input { font-family: inherit; }
.auth-page a { color: inherit; text-decoration: none; }
.auth-page :is(a, button, input):focus-visible { outline: 2px solid #65e0ce; outline-offset: 4px; }
.auth-header { border-bottom: 1px solid var(--line); }
.auth-header-inner { width: min(1440px, calc(100% - 80px)); min-height: 68px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
/* Brand lockup as on the website: icon plus the Bebas wordmark. */
.auth-wordmark { display: inline-flex; flex-shrink: 0; align-items: center; gap: 11px; font-family: "Cineslate Brand", "Bebas Neue", "Arial Narrow", Arial, sans-serif; font-size: 1.6rem; font-weight: 400; letter-spacing: .16em; white-space: nowrap; }
.auth-wordmark-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; }
.auth-wordmark img { display: block; width: 32px; height: 32px; object-fit: contain; border-radius: 6px; }
.auth-wordmark-title { padding-top: 3px; line-height: 1; }
.auth-home-link { display: inline-flex; align-items: center; gap: 8px; color: var(--dim) !important; font-size: .8125rem; }
.auth-home-link:hover { color: var(--text) !important; }
.auth-page .page { flex: 1; min-height: 0; padding: 48px 20px; }
.auth-page .dialog { width: 100%; max-width: 490px; padding: 36px 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: none; }
.auth-eyebrow { margin: 0 0 20px; color: var(--cyan); font-size: .6875rem; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .13em; }
.auth-page h1 { color: var(--text); font-family: var(--auth-font); font-size: 2.5rem; font-weight: 500; line-height: 1.1; letter-spacing: -.045em; text-align: left; }
.auth-page .subtitle { max-width: none; margin: 18px 0 0; color: var(--dim); font-size: .9375rem; line-height: 1.65; text-align: left; }
.auth-page .subtitle-note { margin-top: 10px; color: var(--muted); font-size: .8125rem; line-height: 1.6; text-align: left; }
.auth-page .flow { display: block; margin-top: 20px; padding: 10px 12px; border-color: #294644; border-radius: 5px; color: #abe6df; background: #152426; font-size: .75rem; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.auth-page .msg-ok, .auth-page .msg-err { margin-top: 20px; padding: 12px 14px; border: 1px solid; border-radius: 6px; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.auth-page .msg-ok { border-color: #2b5142; background: #14251e; color: #aae0c5; }
.auth-page .msg-err { border-color: #593737; background: #25191a; color: #f2b0b0; }
.auth-page .auth-form { margin-top: 26px; }
.auth-page .auth-agreement { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; color: var(--dim); font-size: .8125rem; line-height: 1.65; }
.auth-page .auth-agreement:first-child { margin-top: 0; }
.auth-page .auth-agreement input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--cyan); cursor: pointer; }
.auth-page .auth-agreement label { min-width: 0; cursor: pointer; }
.auth-page .auth-agreement + .oauth { margin-top: 18px; }
.auth-page .field { margin-top: 20px; }
.auth-page .field:first-of-type { margin-top: 0; }
.auth-page .label { margin-bottom: 9px; color: var(--text); font-size: .8125rem; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.auth-page input:is([type="email"], [type="text"], [type="password"]) { min-height: 50px; padding: 13px 14px; border: 1px solid #3b4143; border-radius: 6px; background: var(--input-bg); color: var(--input-text); font-size: 1rem; line-height: 1.4; box-shadow: none; }
.auth-page input:is([type="email"], [type="text"], [type="password"]):focus { background: #0c1214; border-color: var(--cyan); box-shadow: none; }
.auth-page input::placeholder { color: #7f8b8f; }
.auth-page input:-webkit-autofill, .auth-page input:-webkit-autofill:hover, .auth-page input:-webkit-autofill:focus { -webkit-text-fill-color: var(--input-text); box-shadow: 0 0 0 1000px var(--input-bg) inset; caret-color: var(--input-text); }
.auth-page .submit, .auth-page .oauth { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 18px; border: 1px solid transparent; border-radius: 6px; font-size: .9375rem; font-weight: 550; line-height: 1.4; box-shadow: none; transition: background 160ms ease, border-color 160ms ease; }
.auth-page .submit { margin-top: 24px; background: #f0f2ef; color: #111716; }
.auth-page .submit:hover { background: #fff; filter: none; transform: none; }
.auth-page .submit[disabled] { border-color: var(--line); background: #202628; color: #7f8b8f; cursor: not-allowed; }
.auth-page .oauth { gap: 10px; margin-top: 0; border-color: #8e918f; background: #131314; color: #e3e3e3; font-family: "Google Sans", var(--auth-font); font-size: 14px; font-weight: 500; line-height: 20px; }
.auth-page .oauth:hover { border-color: #b4b8b5; background: #202022; }
.auth-page .oauth-google-icon { display: block; flex: 0 0 20px; width: 20px; height: auto; }
.auth-page .divider { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); font-size: .6875rem; line-height: 1.4; letter-spacing: .04em; text-align: center; }
.auth-page .divider::before, .auth-page .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-page .tiny { margin-top: 16px; color: var(--dim); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.auth-page .link, .auth-page .auth-switch .accent { color: #c9eded; font-size: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.auth-page .link:hover, .auth-page .auth-switch .accent:hover { color: var(--cyan); }
.auth-page .auth-switch { display: flex; flex-wrap: wrap; gap: 4px 7px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8125rem; line-height: 1.6; }
.auth-page .auth-switch .accent { margin-left: 0; }
.auth-footer { width: min(1440px, calc(100% - 80px)); margin-inline: auto; padding: 22px 0 28px; border-top: 1px solid var(--line); }
.auth-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; color: var(--muted); font-size: .75rem; }
.auth-footer a:hover { color: var(--text); }
.auth-embedded { display: block; min-height: 0; margin: 0; background: #101416; }
.auth-embedded .page { display: block; min-height: 0; padding: 0; }
.auth-embedded .dialog { max-width: none; margin: 0; padding: 30px 36px 32px; border: 0; border-radius: 0; background: transparent; }
.auth-modal-brand { display: flex; align-items: center; gap: 9px; margin: 0 36px 28px 0; color: var(--text); font-size: .9375rem; font-weight: 650; line-height: 1.15; letter-spacing: .11em; }
.auth-modal-brand img { display: block; flex: 0 0 32px; object-fit: contain; }
.auth-embedded .auth-eyebrow { display: none; }
.auth-embedded .subtitle-note { display: none; }
.auth-embedded h1 { font-size: 2.25rem; }
.auth-embedded .subtitle { margin-top: 14px; }
.auth-embedded .auth-form { margin-top: 24px; }
.auth-embedded .auth-switch { margin-top: 24px; padding-top: 20px; }
.auth-embedded [aria-busy="true"] button[type="submit"] { opacity: .65; cursor: wait; }
.auth-embedded .auth-embed-error { margin-top: 16px; }
@media (max-width: 540px) {
  .auth-header-inner { width: calc(100% - 36px); min-height: 60px; gap: 12px; }
  .auth-wordmark { gap: 8px; font-size: 1.3rem; letter-spacing: .14em; }
  .auth-wordmark-icon { flex-basis: 28px; width: 28px; height: 28px; }
  .auth-wordmark img { width: 26px; height: 26px; }
  .auth-home-link { font-size: .75rem; gap: 5px; }
  .auth-page .page { align-items: flex-start; padding: 28px 18px; }
  .auth-page .dialog { padding: 28px 22px; }
  .auth-page h1 { font-size: 2.125rem; }
  .auth-footer { width: calc(100% - 36px); padding-block: 20px 24px; }
  .auth-footer nav { gap: 10px 20px; }
  .auth-embedded .page { padding: 0; }
  .auth-embedded .dialog { padding: 26px 24px 32px; }
  .auth-embedded h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page button, .auth-page input { transition: none; }
}
