/* The doorway (shared/doorway.html): the landing page (owner 2026-11-04: white, like a search home page; the blue logo,
   the heading, one line, Sign up and Sign in outlined, blue when pointed at; a message box under them) and the screens
   for passport's emailed links (#f). All of it in the middle of the screen; the message is there from the start, so nothing moves. */
:root { --bg: #fff; --box: #fff; --line: #d5dbe5; --text: #16202e; --muted: #5b6779; --blue: #3b5bab; --on-blue: #fff;
        --note-bg: #f8f5ef;   /* 2026-11-30 (owner: "should this stone color be a bit more lighter"): was #f2ede4 */  --link: #3b5bab; --err: #c2413a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1320; --box: #171e29; --line: #2c3646; --text: #e6ebf2; --muted: #9aa6b8; --blue: #a8c2ff; --on-blue: #0e1320;
  --note-bg: #2b2721; --link: #a8c2ff; } }
:root[data-theme="dark"] { --bg: #0e1320; --box: #171e29; --line: #2c3646; --text: #e6ebf2; --muted: #9aa6b8; --blue: #a8c2ff;
  --on-blue: #0e1320; --note-bg: #2b2721; --link: #a8c2ff; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px "IBM Plex Sans", system-ui, sans-serif; }

/* ---- the landing page ---- */
#door { box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }   /* in the middle of the screen */
.hero.circle { box-sizing: border-box; width: 640px; aspect-ratio: 1; padding: 90px; justify-content: center;
  background: radial-gradient(closest-side, var(--bg) 72%, transparent 100%); }   /* a plain circle that fades into the pattern: no edge (owner 2026-11-04) */
@media (max-width: 660px) { .hero.circle { width: calc(100% + 32px); margin: 0 -16px; aspect-ratio: auto; padding: 80px 24px; } }   /* phones: an oval, the same fade */
#door[hidden] { display: none; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.hero img { width: 72px; height: 72px; border-radius: 16px; }
.hero h1 { margin: 0; font: 700 34px/1.1 Sora, system-ui, sans-serif; letter-spacing: -.5px; }
.hero .tag { margin: 0; font-size: 19px; color: var(--muted); }
.btns { display: flex; gap: 12px; margin-top: 10px; }
.btns button { min-width: 120px; border: 0; border-radius: 10px; padding: 11px 34px; cursor: pointer; font: 600 15px "IBM Plex Sans", sans-serif;
  background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); transition: background .15s, color .15s; }
.btns button.primary { background: var(--blue); color: var(--on-blue); min-width: 200px; }   /* Back to ai-recruit (home, signed in), as the AI Studio's Back to the Studio */
.btns button:not(:disabled):hover, .btns button:focus-visible { background: var(--blue); color: var(--on-blue); outline: none; }
.btns button:disabled { cursor: default; }   /* Sign up while it is by invitation: it looks the same as Sign in (owner 2026-11-04) */
.btns button, .btns button.primary { flex: none; width: min(200px, calc(50vw - 30px)); min-width: 0; height: 46px; padding: 0 12px; box-sizing: border-box; white-space: nowrap; }   /* (owner 2026-11-25: "pelase make this the same height and width"; "lets make it exactly like this but in its theme color"): the two buttons one size, as ai-admin's; the site's own blue */
.note { max-width: 440px; padding: 12px 16px; border-radius: 12px; background: var(--note-bg); font-size: 14px; line-height: 1.5; }   /* sandstone, no border; shown only with a message (owner 2026-11-05) */
.note b { display: block; margin-bottom: 2px; }
.note { box-sizing: border-box; width: 100%; min-height: 72px; display: flex; flex-direction: column; justify-content: center; visibility: hidden; }
.note.on { visibility: visible; }   /* its room is always kept: nothing above or below it moves when a message shows (owner 2026-11-04) */
@media (max-width: 660px) { .note { min-height: 96px; } }   /* two lines on a phone */
.terms { margin: 18px 0 0; text-align: center; font-size: 12px; }
.terms a { color: var(--link); }

/* ---- the emailed links' screens ---- */
#f { box-sizing: border-box; width: min(400px, calc(100vw - 32px)); margin: 12vh auto 0; background: var(--box); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; font-size: 14px; }
#f h1 { font-size: 16px; margin: 0 0 8px; }
#f p { margin: 0 0 14px; color: var(--muted); line-height: 1.45; }
#f label { display: grid; gap: 4px; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; }
#f input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-weight: 400; background: var(--box); color: var(--text); }
#f button { border: 1px solid var(--blue); background: var(--blue); color: var(--on-blue); border-radius: 8px; padding: 7px 16px; font: inherit; font-weight: 600; cursor: pointer; }
#f button:disabled { opacity: .6; cursor: default; }
#f .err { color: var(--err); font-size: 13px; margin-bottom: 10px; }
#f .ok { color: var(--blue); font-size: 13px; margin-bottom: 10px; font-weight: 600; }
#f .acts { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
#f .acts .link { margin-right: auto; }
#f .link { border: 0; background: none; color: var(--link); padding: 0; font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
#f .hint { font-weight: 400; color: var(--muted); font-size: 11.5px; }
#f small { display: block; margin-top: 12px; color: var(--muted); font-size: 11.5px; }

/* ---- the account box, dropped from the top bar: its right edge at Sign in's, its shadow
   reaching to the top bar's right end (owner 2026-11-04) ---- */
.acct.drop { box-shadow: 4px 12px 16px -4px rgba(10, 16, 28, .24); transform: translateX(2px); }   /* 2px past Sign in's edge: it reads as lined up (owner) */

/* ---- the AI background, a placeholder (owner 2026-11-04: quotes and AI content later): a faint network of points and
   links, only where the page's content goes (under the top bar, inside its margins), not the whole screen ---- */
.stage { flex: 1 1 auto; min-height: 0; position: relative; z-index: 0; display: grid; place-items: center; overflow: hidden; border-radius: 14px; }
.stage::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 14px; background: url("/shared/ai-bg.svg") center / cover no-repeat; }
#door { position: relative; z-index: 0; }
#door::before { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 14px;
  top: 12px; bottom: 12px; left: max(16px, calc((100vw - 1440px) / 2 + 16px)); right: max(16px, calc((100vw - 1440px) / 2 + 16px));
  background: url("/shared/ai-bg.svg") center / cover no-repeat;
 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage::before, :root:not([data-theme="light"]) #door::before { opacity: .75; } }
:root[data-theme="dark"] .stage::before, :root[data-theme="dark"] #door::before { opacity: .75; }
/* phones: the signed-out bar keeps home, theme and Sign in inside it */
@media (max-width: 660px) {
  #bar { gap: 8px; }
  #bar h1 { font-size: 16px; }
  #bar .sub { display: none; }
  #bar .right { gap: 6px; }
  #bar .signin-btn { min-width: 0; padding: 5px 10px; }
}
@media (max-width: 360px) {   /* the smallest phones */
  #bar { padding: 8px 10px; }
  #bar img { width: 28px; height: 28px; }
  #bar h1 { font-size: 14px; }
  #bar .icon-btn { width: 28px; height: 28px; }
  #bar .signin-btn { padding: 5px 8px; font-size: 12px; }
}

/* the landing page's Sign in button is plain (the page's .out means a sign-in that ended: red; not here) */
#bar .signin-btn.out { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); color: #fff; font-weight: 500; }
/* ---- one page for the landing page and Sign in / Sign up: nothing moves between them (owner 2026-11-05) ---- */
#main.landing #bar { visibility: hidden; }                     /* the landing page: the bar's room kept, empty */
#main:not(.landing) .hero .btns { visibility: hidden; }        /* signing in: the buttons' room kept */
#main:not(.landing) .note.on { visibility: hidden; }
/* 1.73.1 (owner 2026-11-25: "make sign in the same width"; "Lets keep it 125"; "make it all 125"): Sign in 125px at every width, as the site buttons */
.signin-btn, .bar .right .signin-btn, #bar .signin-btn { width: 125px; min-width: 125px; flex: 0 0 125px; padding-left: 8px; padding-right: 8px; }
