/* Sign-in and sign-up pages (templates/_auth_split.html). Needs site.css first.
   Phone: a short dark brand band, the form card overlapping it, then the other ways to sign in as a list.
   Laptop (960px and up): the brand panel stays on the left, the form is centred on the right. */

.au-body {
  --au-bg: #f4f6fb;
  --au-card: #ffffff;
  --au-line: #e1e6f0;
  --au-field-line: #cfd6e6;
  --au-field-hover: #b6c0d8;
  --au-field-bg: #ffffff;
  --au-text: #0b1020;
  --au-muted: #566079;
  --au-faint: #8590a8;
  --au-tint: #eef2ff;
  --au-accent: #2f54eb;
  --au-shadow: 0 1px 2px rgba(11, 16, 32, 0.05), 0 28px 56px -28px rgba(11, 16, 32, 0.4);
  background: var(--au-bg);
  color: var(--au-text);
  min-height: 100vh;
}
html[data-bs-theme="dark"] .au-body {
  --au-bg: #080c19;
  --au-card: #101733;
  --au-line: #232c4d;
  --au-field-line: #34406b;
  --au-field-hover: #4a5888;
  --au-field-bg: #0b1129;
  --au-text: #eef1fb;
  --au-muted: #a2aeca;
  --au-faint: #7482a6;
  --au-tint: #19224a;
  --au-accent: #7d9bff;
  --au-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 56px -28px rgba(0, 0, 0, 0.8);
}
.au { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- The brand panel (a band on a phone) ---- */
.au-art { position: relative; isolation: isolate; overflow: hidden; background: var(--wx-midnight); color: #fff; padding: calc(16px + env(safe-area-inset-top)) var(--wx-gutter) 72px; }
.au-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 100% at 88% -20%, rgba(59, 130, 246, 0.5), transparent 58%), radial-gradient(90% 80% at -10% 115%, rgba(122, 92, 250, 0.38), transparent 62%), linear-gradient(180deg, #0b1020 0%, #121a4a 100%); }
.au-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(90% 100% at 75% 10%, #000, transparent 75%); mask-image: radial-gradient(90% 100% at 75% 10%, #000, transparent 75%); }
.au-art__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.au-brand { display: inline-flex; align-items: center; }
.au-brand img { display: block; height: 34px; width: auto; }
.au-back { display: inline-flex; align-items: center; gap: 4px; color: rgba(255, 255, 255, 0.8); font-size: 14px; font-weight: 500; text-decoration: none; padding: 8px 4px; }
.au-back:hover { color: #fff; }
.au-pitch { margin-top: 20px; max-width: 20em; font-size: clamp(22px, 6.2vw, 28px); line-height: 1.14; letter-spacing: -0.028em; font-weight: 650; }
.au-lede, .au-points, .au-peek, .au-live, .au-art__foot { display: none; }

/* ---- The form column ---- */
.au-main { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: 0 var(--wx-gutter) calc(28px + env(safe-area-inset-bottom)); margin-top: -44px; }
.au-card { width: 100%; max-width: 480px; margin: 0 auto; background: var(--au-card); border: 1px solid var(--au-line); border-radius: var(--wx-r-l); padding: 26px 20px 24px; box-shadow: var(--au-shadow); }
.au-title { font-size: 28px; line-height: 1.1; letter-spacing: -0.032em; font-weight: 650; color: var(--au-text); }
.au-sub { margin-top: 8px; color: var(--au-muted); font-size: 15.5px; line-height: 1.5; }
.au-card > .au-sub + .au-sub { margin-top: 6px; }

.au-flash { position: relative; margin: 0 0 18px; padding: 12px 14px 12px 44px; border-radius: var(--wx-r-s); border: 1px solid; font-size: 14.5px; line-height: 1.45; }
.au-flash::before { content: ""; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; background-color: currentColor; -webkit-mask: var(--au-flash-icon) center / contain no-repeat; mask: var(--au-flash-icon) center / contain no-repeat; }
.au-flash.is-note { --au-flash-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); background: #eef2ff; border-color: #c7d2fe; color: #1f2f8a; }
.au-flash.is-warn { --au-flash-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 20h18z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E"); background: #fff7e6; border-color: #f6d9a1; color: #7a4b05; }
.au-flash.is-bad { --au-flash-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5M12 16h.01'/%3E%3C/svg%3E"); background: #fdecea; border-color: #f5c2bb; color: #8f1f10; }
html[data-bs-theme="dark"] .au-flash.is-note { background: #19224a; border-color: #34406b; color: #c9d4ff; }
html[data-bs-theme="dark"] .au-flash.is-warn { background: #3a2a0c; border-color: #6b4d12; color: #f4d28a; }
html[data-bs-theme="dark"] .au-flash.is-bad { background: #3b1511; border-color: #7a2a22; color: #ffb7ac; }
.au-flash[hidden] { display: none; }
.au-card > :is(.au-title, .au-sub) + .au-flash { margin-top: 18px; }

/* ---- Fields ---- */
.au-field { margin-top: 18px; }
.au-field label, .au-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: var(--au-text); }
.au-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.au-label-row label { margin: 0; }
.au-input { display: block; width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--au-field-line); border-radius: var(--wx-r-s); background: var(--au-field-bg); color: var(--au-text); font-size: 16px; line-height: 1.3; transition: border-color 0.15s, box-shadow 0.15s; }
.au-input:hover { border-color: var(--au-field-hover); }
.au-input:focus { outline: none; border-color: var(--au-accent); box-shadow: 0 0 0 4px rgba(47, 84, 235, 0.18); }
.au-input::placeholder { color: var(--au-faint); }
select.au-input { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238590a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; text-overflow: ellipsis; }
.au-pw { position: relative; }
.au-pw .au-input { padding-right: 76px; }
.au-pw > button { position: absolute; top: 5px; right: 5px; bottom: 5px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: var(--au-accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.au-pw > button:hover { background: var(--au-tint); }
.au-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; }
.au-phone { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 8px; }
.au-hint { margin-top: 7px; color: var(--au-muted); font-size: 13.5px; line-height: 1.4; }
.au-link { color: var(--au-accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.au-link:hover { text-decoration: underline; }
.au-set { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.au-set > legend { padding: 0; margin: 0 0 2px; font-size: 13.5px; font-weight: 600; color: var(--au-muted); }
.au-set + .au-set { margin-top: 26px; }
.au-set .au-field:first-of-type, .au-set .au-row:first-of-type .au-field { margin-top: 10px; }

.au-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 14.5px; line-height: 1.5; color: var(--au-muted); cursor: pointer; }
.au-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--au-accent); cursor: pointer; }
.au-check a { color: var(--au-accent); font-weight: 600; }
.au-submit { margin-top: 22px; }
.au-alt { margin-top: 20px; text-align: center; font-size: 15px; color: var(--au-muted); }
.au-alt a { color: var(--au-accent); font-weight: 600; text-decoration: none; }
.au-alt a:hover { text-decoration: underline; }
.au-note { margin-top: 18px; padding: 12px 14px; border-radius: var(--wx-r-s); background: var(--au-tint); color: var(--au-muted); font-size: 14px; line-height: 1.5; }
.au-note b { color: var(--au-text); font-weight: 600; }
.au-textlink { background: none; border: 0; padding: 0; color: var(--au-accent); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.au-textlink:hover { text-decoration: underline; }
.au-actions { display: grid; gap: 12px; margin-top: 22px; justify-items: center; }
.au-list { margin-top: 16px; display: grid; gap: 8px; }
.au-list li { padding: 12px 14px; border: 1px solid var(--au-line); border-radius: var(--wx-r-s); font-size: 15px; }
.au-list a { color: var(--au-accent); font-weight: 600; text-decoration: none; }
.au-list a:hover { text-decoration: underline; }
.au-danger { margin-top: 26px; border-top: 1px solid var(--au-line); padding-top: 18px; }
.au-danger summary { cursor: pointer; font-size: 14.5px; font-weight: 600; color: #b42318; }
.au-danger p { margin-top: 10px; color: var(--au-muted); font-size: 14.5px; }
.au-btn-danger { background: #c8321e; border-color: #c8321e; color: #fff; }
.au-btn-danger:hover { background: #a82817; }
.au-draft { margin-top: 18px; padding: 12px 14px; border-radius: var(--wx-r-s); background: #fff7e6; border: 1px solid #f6d9a1; color: #7a4b05; font-size: 14px; }

/* The "or" line between the Google button and the e-mail form */
.au-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 4px; color: var(--au-faint); font-size: 14px; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--au-line); }
.au-google { margin-top: 22px; background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 600; }
.au-google:hover { background: #f8f9fa; border-color: #c6c9cf; }
.au-google-note { margin-top: 8px; text-align: center; color: var(--au-faint); font-size: 12.5px; line-height: 1.4; }
.au-google + .au-or { margin-top: 20px; }

/* Password strength: advice only, the server makes the real check */
.au-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 9px; }
.au-meter i { height: 4px; border-radius: 2px; background: var(--au-line); transition: background-color 0.2s; }
.au-meter[data-level="1"] i:nth-child(-n+1) { background: #e5484d; }
.au-meter[data-level="2"] i:nth-child(-n+2) { background: #f5a524; }
.au-meter[data-level="3"] i:nth-child(-n+3) { background: #5ab552; }
.au-meter[data-level="4"] i { background: #0e9f6e; }
.au-meter-label { margin-top: 6px; min-height: 18px; color: var(--au-muted); font-size: 13px; }

/* Staff: the six ways to sign in, as tiles */
.au-roles { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.au-roles > legend { padding: 0; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--au-text); }
.au-roles__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.au-role { position: relative; display: block; cursor: pointer; }
.au-role input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.au-role__box { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--au-line); border-radius: 4px; background: var(--au-field-bg); transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s; }
.au-role__box .wx-i { color: var(--au-accent); margin-bottom: 4px; }
.au-role__box b { font-size: 14.5px; font-weight: 600; color: var(--au-text); }
.au-role__box small { font-size: 12.5px; line-height: 1.35; color: var(--au-muted); }
.au-role:hover .au-role__box { border-color: var(--au-field-hover); }
.au-role input:checked + .au-role__box { border-color: var(--au-accent); background: var(--au-tint); box-shadow: 0 0 0 3px rgba(47, 84, 235, 0.16); }
.au-role input:focus-visible + .au-role__box { outline: 3px solid rgba(59, 130, 246, 0.6); outline-offset: 2px; }

/* Other ways to sign in: one tidy block, the same on every sign-in page */
.au-portals { width: 100%; max-width: 480px; margin: 22px auto 0; }
.au-portals__title { margin: 0 4px 10px; font-size: 14px; font-weight: 600; color: var(--au-muted); }
.au-portals ul { display: grid; gap: 10px; }
.au-portal { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--au-line); border-radius: 4px; background: var(--au-card); color: var(--au-text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.au-portal:hover { border-color: var(--au-field-hover); box-shadow: 0 10px 24px -16px rgba(11, 16, 32, 0.45); transform: translateY(-1px); }
.au-portal__ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 3px; background: var(--au-tint); color: var(--au-accent); }
.au-portal__txt { min-width: 0; }
.au-portal__txt b { display: block; font-size: 15px; font-weight: 600; }
.au-portal__txt small { display: block; margin-top: 1px; color: var(--au-muted); font-size: 13.5px; line-height: 1.35; }
.au-portal__go { margin-left: auto; color: var(--au-faint); }

.au-main .legal-links { margin-top: auto; padding: 26px 8px 0; color: var(--au-muted); }

/* ---- Tablet and up ---- */
@media (min-width: 560px) {
  .au-card { padding: 32px 32px 30px; }
  .au-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-title { font-size: 30px; }
  .au-art { padding-bottom: 80px; }
}

/* ---- Laptop: the panel beside the form ---- */
@media (min-width: 960px) {
  .au { display: grid; grid-template-columns: minmax(440px, 46%) minmax(0, 1fr); }
  .au-art { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; padding: 40px clamp(36px, 4.4vw, 68px); }
  .au-art__top { flex: none; }
  .au-brand img { height: 38px; }
  .au-back { display: none; }
  .au-art__mid { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }
  .au-pitch { margin-top: 0; max-width: 14em; font-size: clamp(34px, 3.3vw, 48px); line-height: 1.06; letter-spacing: -0.035em; }
  .au-lede { display: block; margin-top: 18px; max-width: 30em; color: rgba(255, 255, 255, 0.74); font-size: 17px; line-height: 1.55; }
  .au-points { display: grid; gap: 12px; margin-top: 26px; }
  .au-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.92); font-size: 15.5px; }
  .au-points .wx-i { padding: 7px; box-sizing: content-box; width: 18px; height: 18px; border-radius: 3px; background: rgba(255, 255, 255, 0.09); color: var(--wx-sky); }
  .au-peek { display: block; position: relative; flex: none; width: min(100%, 400px); margin-bottom: 8px; }
  .au-peek__card { padding: 16px 16px 14px; border-radius: 5px; background: rgba(255, 255, 255, 0.95); color: var(--wx-ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65); }
  .au-peek__head { display: flex; align-items: center; gap: 10px; }
  .au-peek__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 3px; background: #e8edff; color: var(--wx-blue); }
  .au-peek__name { flex: 1; min-width: 0; }
  .au-peek__name b { display: block; font-size: 14.5px; font-weight: 650; }
  .au-peek__name small { display: block; color: var(--wx-muted); font-size: 12.5px; }
  .au-peek__head em { font-style: normal; font-size: 12px; font-weight: 600; color: #0b6b4d; background: #d9f5ea; padding: 3px 9px; border-radius: 3px; }
  .au-peek__meter { margin-top: 14px; height: 6px; border-radius: 3px; background: #e5e9f3; overflow: hidden; }
  .au-peek__meter span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--wx-blue), var(--wx-sky)); }
  .au-peek__row { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--wx-muted); }
  .au-peek__row b { color: var(--wx-ink); }
  .au-peek__list { margin-top: 10px; display: grid; gap: 7px; }
  .au-peek__list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wx-muted); }
  .au-peek__list li.is-done { color: var(--wx-text); }
  .au-peek__list li.is-done .wx-i { color: var(--wx-good); }
  .au-peek__chip { position: absolute; right: -14px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px; background: #fff; color: var(--wx-ink); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
  .au-peek__chip .wx-i { color: var(--wx-blue); }
  .au-peek__chip b { display: block; font-size: 13px; font-weight: 650; }
  .au-peek__chip small { display: block; font-size: 12px; color: var(--wx-muted); }
  .au-live { display: flex; flex: none; gap: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .au-live > div { flex: 1; }
  .au-live > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
  .au-live b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
  .au-live span { color: rgba(255, 255, 255, 0.66); font-size: 13.5px; }
  .au-art__foot { display: block; flex: none; color: rgba(255, 255, 255, 0.55); font-size: 13.5px; }

  .au-main { justify-content: center; align-items: center; min-height: 100vh; margin-top: 0; padding: 48px clamp(32px, 5vw, 72px); }
  .au-card { padding: 40px 40px 36px; }
  .au-card--wide { max-width: 660px; }
  .au-portals { margin-top: 18px; }
  .au-portals ul { gap: 8px; }
  .au-portal { padding: 10px 14px; }
  .au-portal__ico { width: 38px; height: 38px; }
  .au-portals--wide { max-width: 660px; }
  .au-main .legal-links { margin-top: 24px; padding-top: 0; }
  .au-title { font-size: 32px; }
}
/* A laptop with a short screen: drop the picture first, then the longer text */
@media (min-width: 960px) and (max-height: 820px) { .au-peek { display: none; } }
@media (min-width: 960px) and (max-height: 680px) { .au-lede { display: none; } .au-points { margin-top: 20px; } }
@media (min-width: 960px) and (max-width: 1100px) { .au-art { padding-left: 32px; padding-right: 32px; } }

/* "Finish your account" after Google: who Google says you are */
.au-who { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--au-line); border-radius: var(--wx-r-s); background: var(--au-tint); }
.au-who .wx-i { background: #fff; border-radius: 4px; padding: 6px; box-sizing: content-box; box-shadow: 0 0 0 1px #dadce0; }
.au-who span { min-width: 0; display: grid; line-height: 1.3; }
.au-who b { font-size: 15px; font-weight: 600; color: var(--au-text); overflow-wrap: anywhere; }
.au-who small { font-size: 13.5px; color: var(--au-muted); overflow-wrap: anywhere; }
.au-who a { margin-left: auto; flex: none; font-size: 14px; font-weight: 600; color: var(--au-accent); text-decoration: none; }
.au-who a:hover { text-decoration: underline; }
