/* ==========================================================================
   DocuStacker — sign-in pages (login, register, accept invitation, forgot
   and reset password). One shared look: the form on the left on a plain white
   panel, and a soft lavender panel on the right with the logo and a short
   "what you get" card. On tablets and phones the right panel is dropped and
   the logo moves above the form. Loaded after ds.css.
   ========================================================================== */
.auth.au { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; background: var(--ih-surface); }

/* ---- left: the form ---- */
.au .auth-main { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 32px 32px 20px; }
.au .auth-body { flex: 0 0 auto; display: block; width: 100%; max-width: 460px; margin: auto 0; padding: 0; }
.au .auth-card { width: 100%; max-width: none; }
.au .mark.au-mark-m { display: none; margin-bottom: 28px; }

/* heading */
.au-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ih-primary); }
.au .auth-card .h1 { margin-top: 8px; font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.au .auth-card .lede { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--ih-ink-soft); }
.au .auth-card .lede strong { font-weight: 600; color: var(--ih-ink); }

/* Google, then "or … with email" */
.au-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; margin-top: 22px; border: 1px solid var(--ih-border-strong); border-radius: 10px; background: var(--ih-surface); font-size: 15px; font-weight: 600; color: var(--ih-ink); transition: background-color .15s, border-color .15s; }
.au-google:hover { background: #f7f7fb; }
.au-google:focus-visible { outline: none; border-color: var(--ih-primary); }
.au-google svg { width: 18px; height: 18px; flex-shrink: 0; }
.au-or { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ih-ink-faint); }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--ih-border); }

/* form */
.au .auth-card form { gap: 18px; margin-top: 24px; }
.au .au-or + form, .au .au-or + .notice + form { margin-top: 20px; }
.au .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.au .field { gap: 7px; }
.au .label { font-size: 14px; font-weight: 600; }
.au .label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.au .label-row a { font-size: 13px; font-weight: 500; color: var(--ih-ink-faint); }
.au .label-row a:hover { color: var(--ih-primary); }
.au .inp { height: 44px; border-radius: 10px; background: #fafafc; }
.au .inp:focus { background: var(--ih-surface); border-color: var(--ih-primary); box-shadow: none; }
.au .inp:disabled { background: #f1f1f6; color: var(--ih-ink-soft); }
.au .inp-wrap .tool { top: 6px; right: 6px; border-radius: 8px; }
.au .hint { font-size: 12px; line-height: 1.35; }
.au .link { font-weight: 600; }
.au .pw-meter { margin-top: 2px; }
.au .pw-rules { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 2px 8px; font-size: 11.5px; }
.au .pw-rules li { gap: 5px; white-space: nowrap; }
.au .opt-row { align-items: center; font-size: 14px; font-weight: 600; color: var(--ih-ink); }
.au .opt-row.is-soft { font-weight: 500; color: var(--ih-ink-soft); }
.au .opt-row input { margin-top: 0; }

/* last row of a form: something quiet on the left, the main button on the right */
.au-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.au-actions > .link, .au-actions > a.quiet { font-size: 14px; font-weight: 500; color: var(--ih-ink-faint); text-decoration: underline; text-underline-offset: 3px; }
.au-actions > a.quiet:hover { color: var(--ih-primary); }
.au .auth-card .b { height: 48px; padding: 0 26px; border-radius: 999px; font-size: 15.5px; font-weight: 700; justify-content: center; gap: 10px; margin-left: auto; }
.au .auth-card .b svg.arr { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.au .auth-card .b:hover svg.arr { transform: translateX(3px); }
.au .auth-card .b:active { transform: translateY(1px); }
.au .auth-card .b.is-start { margin-left: 0; margin-top: 24px; }

/* messages */
.au .auth-card .notice { margin-top: 20px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; text-align: left; }
.au .auth-card .notice strong { font-size: 14px; }

/* invitation: who invited you */
.au .auth-card .who { gap: 12px; margin: 0 0 22px !important; padding: 12px 14px; border: 1px solid var(--periwinkle-line, #dadff4); border-radius: 12px; background: color-mix(in srgb, var(--periwinkle) 55%, var(--ih-surface)); text-align: left; }
.au .auth-card .who .biz-mono { width: 38px !important; height: 38px !important; border-radius: 10px !important; }
.au .auth-card .who .who-text strong { font-size: 14.5px; }
.au .auth-card .who .who-text span { font-size: 12.5px; color: var(--ih-ink-soft); }
.au .auth-card > [data-when] > .ico { display: grid; width: 48px; height: 48px; margin: 0 0 18px !important; border-radius: 12px !important; }
.au .auth-card > [data-when] > .ico .i { width: 20px; height: 20px; }

/* under the form */
.au .auth-alt { margin-top: 26px; font-size: 14px; text-align: center; color: var(--ih-ink-faint); }
.au .auth-alt .link { font-weight: 500; color: var(--ih-ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.au .auth-alt .link:hover { color: var(--ih-primary); }
.au .auth-foot { margin-top: 20px; font-size: 12px; text-align: center; }

/* ---- right: logo and the "what you get" card ---- */
.au-side { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 48px 40px; overflow: hidden; background: linear-gradient(165deg, #f5f4fc 0%, #eeecf9 55%, #ebe8f7 100%); }
.au-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.au-blob.is-1 { top: 18%; right: -40px; width: 280px; height: 280px; background: radial-gradient(circle at 35% 35%, #fdeee2, #f8e6dc 70%); opacity: .85; }
.au-blob.is-2 { bottom: 20%; left: -30px; width: 200px; height: 200px; background: radial-gradient(circle at 60% 40%, #ffffff, #f6f5fc 75%); opacity: .9; }
.au-side-inner { position: relative; width: 100%; max-width: 540px; }
.au-side .mark { justify-content: center; margin-bottom: 30px; }
.au-side .mark-glyph .lg-mark { height: 50px; }
.au-side .mark-word { font-size: 25px; }
.au-promo { padding: 30px; border: 1px solid rgba(64, 49, 95, .07); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(28, 26, 34, .03), 0 28px 56px -32px rgba(64, 49, 95, .35); }
.au-kicker { display: inline-block; padding: 5px 10px; border-radius: 6px; background: var(--periwinkle); font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--periwinkle-ink); }
.au-promo h2 { margin-top: 14px; font-size: 25px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; color: #3a3550; }
.au-promo > p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ih-ink-soft); }
.au-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.au-points li { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #ecebf3; border-radius: 12px; }
.au-points .pic { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: var(--periwinkle); color: var(--ih-primary); }
.au-points .pic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.au-points strong { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: #3a3550; }
.au-points span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--ih-ink-faint); }

/* short laptop screens: tighten before anything scrolls */
@media (max-height: 800px) and (min-width: 961px) {
  .au .auth-main { padding-top: 20px; padding-bottom: 14px; }
  .au .auth-card .h1 { font-size: 28px; }
  .au .auth-card .lede { margin-top: 8px; font-size: 15px; }
  .au-google { height: 44px; margin-top: 18px; }
  .au-or { margin-top: 16px; }
  .au .auth-card form { gap: 13px; margin-top: 18px; }
  .au .au-or + form, .au .au-or + .notice + form { margin-top: 16px; }
  .au .inp { height: 40px; }
  .au .inp-wrap .tool { top: 4px; right: 4px; }
  .au .auth-card .b { height: 44px; }
  .au .auth-alt { margin-top: 18px; }
  .au .auth-foot { margin-top: 12px; }
  .au .auth-card .who { margin-bottom: 16px !important; }
}
@media (max-height: 680px) and (min-width: 961px) { .au .auth-foot, .au .hint { display: none; } .au .auth-card .h1 { font-size: 25px; } }
@media (max-width: 1180px) { .au-points { grid-template-columns: minmax(0, 1fr); } }
/* tablets and phones: form only, logo on top */
@media (max-width: 960px) {
  .auth.au { grid-template-columns: minmax(0, 1fr); }
  .au-side { display: none; }
  .au .mark.au-mark-m { display: flex; }
  .au .mark.au-mark-m .mark-word { display: inline; }
  .au .auth-body { margin: 0; }
  .au .auth-main { padding: 28px 20px 20px; }
  .au .auth-foot { margin-top: 28px; }
}
@media (max-width: 480px) {
  .au .auth-card .h1 { font-size: 26px; }
  .au .grid2 { grid-template-columns: minmax(0, 1fr); }
  .au .pw-rules { flex-wrap: wrap; justify-content: flex-start; gap: 4px 14px; }
  .au-actions { flex-wrap: wrap; }
  .au-actions .b { width: 100%; }
}

/* T7: busy state on the forgot / reset password buttons while the form
   is sending (same as account setup, onboarding.css). */
.au .b.is-busy { pointer-events: none; opacity: .8; }
.au .b.is-busy::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: au-spin .7s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .au .b.is-busy::before { animation: none; } }

/* T22: Continue with Google as a link (to /auth/google/), and unavailable until Google is set up */
a.au-google { text-decoration: none; }
.au-google:disabled { cursor: not-allowed; opacity: .55; }
.au-google:disabled:hover { background: var(--ih-surface); }
.au-google-soon { margin: 8px 0 0; text-align: center; }
.au .auth-card form > .who { margin: 0 !important; }

/* Register (2026-11-28): Password and Confirm password side by side; the strength meter and rules sit under both, close to them */
.au .pw-guide { display: flex; flex-direction: column; gap: 7px; margin-top: -7px; }
.au .pw-guide .pw-meter { margin-top: 0; }

/* Footer (2026-11-28): on wide screens it sits at the bottom of the right-hand panel;
   on phones, where that panel is hidden, it stays under the form */
.au-side-foot { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1; margin: 0; text-align: center; }
@media (min-width: 961px) { .au .auth-main > .auth-foot { display: none; } }

/* Sign-up (2026-11-28): centred vertically like the other pages, with a
   little more room under the password rules so the bottom isn't crowded */
.au .pw-guide { margin-bottom: 10px; }
