/* css/sign-in.css: sign in and create account in the new design (the founders' Home Page Review page, "Sign in" version A, glass over the
   lake, picked October 2026). A white pinned header; a softly blurred nature photo under evergreen (the same one as the quote form, so the
   form and its last step feel like one place); a see-through glass card with white fields and a stone button; the help line under it; the
   site footer. The steps (email, code, name) and their ids are unchanged; the scripts in js/sign-in/ show one step at a time. */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --stone: #f6f3ee; --hairline: #e3ddd0; --evergreen: #25483c; --evergreen-deep: #1c3a2f; --sage: #366b55; --sage-light: #add6c0;
  --muted: #4a514d; --ink-on-dark: #f6f3ee; --soft-on-dark: #cfdcd4; --glass-ink: rgba(246,243,238,.86);
  --font-display: 'Literata', Georgia, serif; --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--evergreen-deep); color: var(--ink-on-dark); font-family: var(--font-body); font-size: 16.5px; line-height: 1.55; font-weight: 500; -webkit-font-smoothing: antialiased; }
h1, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:is(button, a, input, label):focus-visible { outline: 2px solid var(--sage-light); outline-offset: 3px; }

/* ---- header: white, pinned ---- */
.si-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--hairline); }
.si-top .fh-brand { text-decoration: none; color: var(--evergreen); }
.fh-brand-word, .fh-brand-name { text-transform: none !important }
.si-top .fh-brand-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.005em; }
.si-home { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; text-decoration: none; color: var(--evergreen); white-space: nowrap; }

/* ---- the stage: the photo, the glass card, the help line ---- */
.si-stage { position: relative; flex: 1; min-height: calc(100vh - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 72px 24px 72px; overflow: hidden; isolation: isolate; }
.si-photo { position: absolute; inset: -24px; z-index: -1; background: url(../images/home/green-shore.jpg) center 45% / cover; filter: blur(8px); }
.si-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(37,72,60,.48) 0%, rgba(28,58,47,.74) 100%); }
.card { width: 100%; max-width: 460px; padding: 36px; border-radius: 24px; background: rgba(246,243,238,.12); border: 1px solid rgba(246,243,238,.28);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgba(10,20,18,.25); }
.si-k { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sage-light); }
.card-title { margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: 40px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink-on-dark); }
.card-sub { margin: 12px 0 24px; font-size: 16.5px; color: var(--glass-ink); }
.card-sub strong { color: var(--ink-on-dark); }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--ink-on-dark); }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid transparent; border-radius: 12px; background: #fff; font: inherit; font-size: 17px; font-weight: 600; color: var(--evergreen); outline: none; transition: box-shadow .2s; }
.field input::placeholder { color: #8a918c; font-weight: 500; }
.field input:focus { box-shadow: 0 0 0 3px rgba(173,214,192,.6); }

/* the stone button on the dark glass (light buttons on dark backgrounds); disabled only while working, so it shows a spinner */
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 54px; margin-top: 4px; padding: 0 20px; border-radius: 12px; border: 1px solid rgba(176,156,122,.65);
  background: var(--stone) linear-gradient(180deg, #fbf9f5 0%, #efe9df 100%); color: var(--evergreen); font-size: 16.5px; font-weight: 800; cursor: pointer;
  box-shadow: 0 1px 2px rgba(10,20,18,.35), 0 4px 12px rgba(10,20,18,.28); transition: filter .2s; }
.btn:hover:not(:disabled) { filter: brightness(1.04); }
.btn:disabled { opacity: .85; cursor: default; }
.btn:disabled::before { content: ''; width: 16px; height: 16px; border: 2px solid rgba(37,72,60,.3); border-top-color: var(--evergreen); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.or-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 16px; font-size: 14px; color: var(--glass-ink); }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: rgba(246,243,238,.25); }
.social-btns { display: flex; flex-direction: column; gap: 12px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid rgba(246,243,238,.5); background: transparent; color: var(--ink-on-dark); font-size: 16px; font-weight: 800; cursor: pointer; transition: background-color .2s; }
.social-btn:hover:not(:disabled) { background: rgba(246,243,238,.1); }
.social-btn.apple { background: #000; border-color: #000; color: #fff; }
.social-btn:disabled { opacity: .7; cursor: default; }
.social-btn svg { flex-shrink: 0; }
.gis-wrap { position: relative; }
.gis-slot { display: flex; justify-content: center; min-height: 32px; }   /* Google's medium button (social.js) */
.gis-guard { position: absolute; inset: 0; z-index: 2; cursor: pointer; }

.terms-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(246,243,238,.2); font-size: 14px; line-height: 1.5; color: var(--glass-ink); cursor: pointer; }
.terms-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--sage); cursor: pointer; }
.terms-check a { color: var(--sage-light); font-weight: 700; text-decoration: none; }
.terms-check a:hover { text-decoration: underline; }
.terms-check.needs-attention { color: #ffd9cf; animation: nudge .35s ease; }
.terms-check.needs-attention input { outline: 2px solid #f3a48f; outline-offset: 1px; border-radius: 3px; }
@keyframes nudge { 0%, 100% { transform: translateX(0) } 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }

.ident-help, .resend-line { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--glass-ink); }
.inline-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 800; color: var(--sage-light); text-decoration: none; cursor: pointer; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.inline-link:disabled { color: rgba(246,243,238,.5); cursor: default; text-decoration: none; }
.error-msg { display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: #fff3ef; color: #8a3b2e; font-size: 14px; font-weight: 600; }
.info-msg { display: none; margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: rgba(246,243,238,.16); color: var(--ink-on-dark); font-size: 14px; }

/* the six code boxes (built by core.js initCodeBoxes) */
.code-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.code-boxes input { min-width: 0; width: 100%; height: 60px; padding: 0; border: 1px solid transparent; border-radius: 12px; background: #fff; text-align: center; font-family: var(--font-display); font-size: 26px; color: var(--evergreen); outline: none; }
.code-boxes input:focus { box-shadow: 0 0 0 3px rgba(173,214,192,.6); }

/* the email / text message tabs (hidden until text-message codes are switched on) */
.channel-tabs { gap: 8px; margin-bottom: 20px; padding: 4px; border-radius: 12px; background: rgba(246,243,238,.12); }
.channel-tab { flex: 1; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--glass-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.channel-tab.active { background: var(--stone); color: var(--evergreen); }
.channel-tab:disabled { opacity: .5; cursor: not-allowed; }

.loading-state { padding: 16px 0 8px; text-align: center; }
.loading-spinner { width: 32px; height: 32px; margin: 0 auto 16px; border: 3px solid rgba(246,243,238,.25); border-top-color: var(--stone); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-text { font-size: 17px; font-weight: 700; color: var(--ink-on-dark); }

/* steps come in with a soft rise */
.step-enter { animation: stepIn .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

.si-call { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 15px; text-decoration: none; color: var(--glass-ink); }
.si-call b { color: var(--ink-on-dark); }

/* ---- footer (the same as the other new pages) ---- */

/* ---- a phone ---- */
@media (max-width: 720px) {
  .si-top { padding: 0 16px 0 20px; }
  .si-home { padding: 8px 12px; border-radius: 12px; background: #f3f7f4; }
  .si-stage { padding: 36px 16px 48px; }
  .card { padding: 28px 24px; border-radius: 24px; }
  .card-title { font-size: 34px; }
  .code-boxes { gap: 8px; }
  .code-boxes input { height: 54px; font-size: 22px; }
  .si-call { font-size: 14px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .step-enter, .btn:disabled::before, .loading-spinner, .terms-check.needs-attention { animation: none; } }

/* js/sign-in/early-step.js: opening on the code screen (or back from Google), the email screen is hidden from the first frame so it never flashes */
.si-skip-email #stepIdentifier { display: none; }
