@font-face { font-family: Inter; src: url('/assets/fonts/inter-latin-opsz-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Shared login/signup shell. Keep all frame dimensions here so changing forms cannot move the café or device. */
html:has(.auth-cafe) { scrollbar-gutter: stable; }
.auth-cafe { --signin-ink: #102e32; --signin-paper: #f8f6ec; --signin-lime: #dfff72; margin: 0; background: #081e22; color: var(--signin-paper); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; font-synthesis: none; }
.auth-cafe *, .auth-cafe *::before, .auth-cafe *::after { box-sizing: border-box; }
.auth-cafe :is(h1, h2, p) { margin: 0; }
.auth-cafe a { color: inherit; text-decoration: none; }
.auth-cafe :is(button, input) { font: inherit; }
.auth-cafe :is(a, button, input) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.auth-cafe button { cursor: pointer; }
.auth-cafe button:disabled { opacity: .65; cursor: wait; }
.auth-cafe [hidden] { display: none !important; }
.auth-cafe ::selection { background: var(--signin-lime); color: var(--signin-ink); }
.auth-cafe :is(a, button, input):focus-visible { outline: 3px solid #287379; outline-offset: 3px; }
.auth-cafe :is(.signin-header, .signin-footer) a:focus-visible { outline-color: var(--signin-lime); }
.auth-cafe .auth-skip-link { position: fixed; top: 8px; left: 16px; z-index: 10; transform: translateY(-150%); padding: 12px 16px; border-radius: 8px; background: var(--signin-lime); color: var(--signin-ink); font-weight: 650; }
.auth-cafe .auth-skip-link:focus { transform: none; }

.signin-header { width: min(1320px, calc(100% - 80px)); height: 84px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.signin-header .brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: #f5f5eb; font-size: 25px; letter-spacing: -1.1px; font-weight: 800; line-height: 1; }
.signin-header .brand-mark { width: 30px; height: 30px; color: var(--signin-lime); }
.signin-account-nav { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.signin-account-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 14px; border: 1px solid transparent; border-radius: 7px; color: #c1d0c6; }
.signin-account-nav a:hover { color: var(--signin-lime); }
.signin-account-nav a[aria-current="page"] { color: var(--signin-lime); border-color: #bdd2bb40; background: #bdd2bb0a; }
.signin-layout { --auth-header-height: 84px; --auth-space-top: 12px; --auth-space-bottom: 42px; --auth-frame-height: max(504px, min(720px, calc(100svh - var(--auth-header-height) - var(--auth-space-top) - var(--auth-space-bottom)))); width: min(1320px, calc(100% - 80px)); min-height: calc(100svh - var(--auth-header-height)); margin-inline: auto; padding: var(--auth-space-top) 0 var(--auth-space-bottom); display: grid; grid-template-columns: minmax(0, 1fr) 470px; align-items: center; gap: clamp(30px, 5vw, 76px); }

.signin-story { align-self: stretch; position: relative; isolation: isolate; min-width: 0; max-height: 780px; min-height: 480px; border: 1px solid #bcd3bb20; border-radius: 26px; overflow: hidden; background: #123335; }
.signin-scene { position: absolute; bottom: 0; left: 0; width: 100%; height: 72%; object-fit: cover; object-position: 58% center; mask-image: linear-gradient(180deg, transparent, #000 19%); z-index: -2; }
.signin-story::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #123335 0%, #123335 18%, #123335a8 35%, transparent 52%, transparent 81%, #061b20d9 100%); }
.signin-story-copy { padding: clamp(26px, 3vw, 46px); }
.signin-eyebrow { font-size: 9px; letter-spacing: .14em; font-weight: 650; line-height: 1.5; }
.signin-story-copy > .signin-eyebrow { color: #c2d6c6; }
.signin-story-copy h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 4.5vw, 65px); font-weight: 500; line-height: 1.03; letter-spacing: -.045em; margin-top: 20px; text-shadow: 0 2px 20px #0a292975; }
.signin-story-copy h2 span { color: var(--signin-lime); }
.signin-story-copy > p:last-child { margin-top: 17px; color: #d4e1d7; font-size: 14px; line-height: 1.65; }
.signin-story-note { position: absolute; bottom: 23px; left: 24px; right: 24px; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; text-shadow: 0 2px 12px #000; }

/* A calm, front-facing version of the landing page's physical tablet. */
.signin-tablet { position: relative; display: flex; flex-direction: column; width: 100%; min-height: var(--auth-frame-height); padding: 19px 12px 15px; border: 1px solid #9aaba0; border-top-color: #c4c9bb; border-radius: 28px; background: linear-gradient(145deg, #333d3a, #0b1516 37%, #192626); box-shadow: inset 0 0 0 2px #101919, 0 3px 0 #65726a, 0 6px 0 #172624, 0 22px 50px #0005; }
.signin-tablet::before { content: ''; position: absolute; top: 6px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #83a7ad 0 15%, #234753 22% 35%, #080e13 45% 65%, #42514e 75%); pointer-events: none; }
.signin-display { flex: 1; border: 1px solid #091617; border-radius: 16px; padding: 23px 28px 22px; color: var(--signin-ink); background: linear-gradient(140deg, #fffdf6, #f3f1e7); box-shadow: 0 0 0 1px #ffffff25, inset 0 1px 2px #fff; }
.signin-display > .signin-eyebrow { color: #61766b; }
.signin-display h1 { font-family: Georgia, 'Times New Roman', serif; font-size: 43px; font-weight: 500; letter-spacing: -.055em; line-height: 1.08; margin-top: 9px; }
.signin-display h1 > span { color: #769141; }
.signin-display .login-intro { margin: 10px 0 23px; color: #5d706a; font-size: 13px; line-height: 1.6; }
.auth-cafe .auth-social { gap: 8px; margin: 0 0 12px; max-width: 100%; }
.auth-cafe .auth-provider-button { min-height: 44px; height: 44px; }
.auth-cafe .auth-provider-button:not(.auth-provider-button--google) { background: #fff; color: #21372f !important; border-color: #88958b; border-radius: 5px; }
.signin-divider { display: flex; align-items: center; gap: 12px; color: #68776e; font-size: 10px; margin: 0 0 16px !important; }
.signin-divider::before, .signin-divider::after { content: ''; height: 1px; flex: 1; background: #d5d9cc; }
.auth-social[hidden] + .signin-divider { display: none; }
.auth-cafe .field { display: grid; gap: 6px; margin-bottom: 14px; }
.auth-cafe .field label { color: #203c37; font-size: 12px; font-weight: 650; }
.auth-cafe .field input { width: 100%; min-width: 0; height: 48px; padding: 0 13px; color: #183b36; background: #fffef9; border: 1px solid #97a397; border-radius: 7px; font-size: 16px; }
.auth-cafe .field input::placeholder { color: #778679; opacity: 1; font-size: 13px; }
.auth-cafe .field input:hover { border-color: #476959; }
.auth-cafe .password-input { position: relative; }
.auth-cafe .password-input input { padding-right: 50px; }
.auth-cafe .password-toggle { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; padding: 11px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #47695d; }
.auth-cafe .password-toggle svg { width: 20px; height: 20px; }
.auth-cafe .password-toggle:hover { background: #e8ede0; }
.auth-cafe .auth-password-help { margin: -8px 0 9px; font-size: 12px; text-align: right; }
.auth-cafe .auth-password-help a { display: inline-flex; align-items: center; min-height: 36px; color: #3a6656; text-decoration: underline; text-underline-offset: 3px; }
.auth-cafe .login-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #bfd455; border-radius: 8px; color: #203925; background: var(--signin-lime); font-size: 13px; font-weight: 700; box-shadow: 0 2px 0 #b0be6670; }
.auth-cafe .login-submit svg { width: 19px; height: 19px; flex: none; }
.auth-cafe .login-submit:hover:not(:disabled) { background: #d2f260; }
.auth-cafe .form-message { padding: 9px 11px; border-radius: 7px; margin: 0 0 12px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-cafe .error-message { background: #fff0e8; color: #853c28; border: 1px solid #c9937c; }
.auth-cafe .login-help { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 5px; font-size: 12px; color: #68756b; margin-top: 10px; }
.auth-cafe .login-help a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #254d3c; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

.signin-footer { width: min(1320px, calc(100% - 80px)); margin-inline: auto; border-top: 1px solid #bdd2bb26; padding: 18px 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px 30px; color: #9fb7aa; font-size: 11px; }
.signin-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.signin-footer a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.signin-footer a:hover { color: var(--signin-lime); }

@media (max-width: 1100px) {
  .signin-header, .signin-layout, .signin-footer { width: calc(100% - 48px); }
  .signin-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; }
  .signin-story-copy { padding: 28px; }
  .signin-story-copy h2 { font-size: 45px; }
  .signin-story-copy > .signin-eyebrow { max-width: 190px; }
  .signin-display { padding-inline: 24px; }
}
@media (max-width: 900px) {
  .auth-cafe { background: radial-gradient(ellipse at 50% 5%, #244638 0%, #081e22 70%); }
  .signin-header { height: 68px; }
  .signin-layout { --auth-header-height: 68px; --auth-space-bottom: 30px; display: flex; justify-content: center; }
  .signin-story { display: none; }
  .signin-tablet { max-width: 470px; }
  .signin-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .signin-footer nav { column-gap: 20px; row-gap: 0; }
}
@media (max-width: 500px) {
  .signin-header, .signin-layout, .signin-footer { width: calc(100% - 28px); }
  .signin-header { height: 60px; }
  .signin-header .brand { font-size: 23px; gap: 7px; }
  .signin-header .brand-mark { width: 26px; height: 26px; }
  .signin-layout { --auth-header-height: 60px; --auth-space-top: 8px; --auth-space-bottom: 24px; align-items: flex-start; }
  .signin-account-nav { gap: 2px; font-size: 11px; }
  .signin-account-nav a { padding-inline: 8px; }
  .signin-tablet { padding: 16px 8px 12px; border-radius: 23px; }
  .signin-tablet::before { top: 5px; }
  .signin-display { padding: 20px 19px 18px; border-radius: 13px; }
  .signin-display h1 { font-size: 38px; }
  .signin-display .login-intro { margin-block: 8px 18px; font-size: 12px; }
  .signin-footer nav { column-gap: 15px; }
}
/* Compact screens lose decorative spacing before any form control loses its size. */
@media (max-height: 840px) {
  .signin-header { height: 60px; }
  .signin-layout { --auth-header-height: 60px; --auth-space-top: 4px; --auth-space-bottom: 10px; }
  .signin-story { min-height: 0; }
  .signin-story-copy h2 { font-size: 42px; margin-top: 12px; }
  .signin-story-copy > p:last-child { font-size: 12px; margin-top: 12px; }
  .signin-display { padding-top: 18px; padding-bottom: 9px; }
  .signin-display h1 { font-size: 36px; margin-top: 6px; }
  .signin-display .login-intro { margin-block: 6px 14px; }
  .auth-cafe .field { margin-bottom: 11px; }
  .auth-cafe .field input { height: 44px; }
  .auth-cafe .password-toggle { top: 0; right: 0; }
  .auth-cafe .auth-social { margin-bottom: 10px; }
  .signin-divider { margin-bottom: 12px !important; }
  .auth-cafe .login-help { margin-top: 5px; }
}
@media (max-width: 360px) {
  .signin-header, .signin-footer { width: calc(100% - 16px); }
  .signin-header { gap: 8px; }
  .signin-layout { width: calc(100% - 4px); }
  .signin-header .brand { font-size: 20px; gap: 5px; }
  /* Both screens reserve the full native 300px security-widget width on small phones. */
  .signin-tablet { padding-inline: 0; border-inline-width: 0; }
  .signin-display { padding-inline: 14px; border-inline-width: 0; }
  .signin-account-nav { font-size: 10px; }
  .signin-account-nav a { padding-inline: 6px; }
  .signin-display h1 { font-size: 34px; }
  .auth-cafe .login-submit { font-size: 12px; }
}
@media (max-height: 740px) {
  .signin-display > .signin-eyebrow, #signup-form-panel > .signin-eyebrow, .signin-display .login-intro { display: none; }
  .signin-display h1 { margin-top: 0; margin-bottom: 10px; }
}
@media (max-height: 620px) {
  .signin-header { height: 52px; }
  .signin-layout { --auth-header-height: 52px; --auth-space-top: 4px; --auth-space-bottom: 10px; }
  .signin-tablet { padding-top: 14px; padding-bottom: 10px; }
  .signin-tablet::before { top: 4px; }
  .signin-display { padding-top: 12px; padding-bottom: 8px; }
  .signin-display > .signin-eyebrow, .signin-display .login-intro { display: none; }
  .signin-display h1 { font-size: 32px; margin: 0 0 12px; }
  .auth-cafe .field { margin-bottom: 8px; }
  .signin-divider { margin-bottom: 8px !important; }
  .auth-cafe .login-help { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-cafe *, .auth-cafe *::before, .auth-cafe *::after { transition: none !important; scroll-behavior: auto !important; }
}
