/*
 * password-gate-evergreen.css: the "Set your password" screen (the patient
 * shell's first-run gate, patient-shell.js `_renderPasswordGate`) in the
 * phone-first checkout's look (owner, 2026-11-17: "the same clean look and feel
 * from booking steps, since this is still pre-dashboard info gathering").
 *
 * The buyer comes here straight from paying, so the screen continues the
 * checkout: the same header (logo to the website, "Questions? Call/Text" and
 * the number), a Newsreader heading, Geist text, white 52px fields with 8px
 * corners and the apricot focus ring, and the forest 8px button. The column is
 * left-aligned like the checkout's form, at the checkout's 480px measure.
 *
 * Loaded after patient-shell.css, whose rules for the gate it overrides at the
 * same weight; nothing else in the app changes. The checkout's own copy of
 * these values lives in secure-booking-checkout.css (--sbc-*).
 */

/* Geist, self-hosted (app/static/fonts/geist, OFL), as on the checkout. */
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist/geist-latin-400-normal.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist/geist-latin-500-normal.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/static/fonts/geist/geist-latin-600-normal.woff') format('woff');
  font-weight: 600;
  font-display: swap;
}

.ps-password-gate {
  --pg-ink: #15251E;
  --pg-muted: #4B5A50;
  --pg-page: #F6F7F2;
  --pg-card: #FFFFFF;
  --pg-line: #D5DBCD;
  --pg-panel: #EAEEE4;
  --pg-forest: #1E3D32;
  --pg-link: #A64D24;
  --pg-apricot: #E07B4B;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 48px;
  background: var(--pg-page);
  color: var(--pg-ink);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
}

/* ---- Header: the checkout's ---------------------------------------------- */

.ps-password-gate-header {
  width: 100%;
  max-width: 1040px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--pg-line);
}
.ps-password-gate-header-logo img {
  display: block;
  height: 28px;
  width: auto;
}
.ps-password-gate-help {
  display: grid;
  justify-items: end;
  gap: 1px;
  min-height: 44px;
  align-content: center;
  color: var(--pg-ink);
  text-decoration: none;
  line-height: 1.2;
}
.ps-password-gate-help-lead {
  color: var(--pg-muted);
  font-size: 12.5px;
}
.ps-password-gate-help-num {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.ps-password-gate-header a:focus-visible {
  outline: 2px solid var(--pg-apricot);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (min-width: 920px) {
  .ps-password-gate-header {
    min-height: 72px;
  }
  .ps-password-gate-header-logo img {
    height: 32px;
  }
}

/* ---- The column ------------------------------------------------------------ */

.ps-password-gate-card {
  max-width: 480px;
  align-items: stretch;
  text-align: left;
  gap: 0;
  padding: 28px 0 0;
}
.ps-password-gate-title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--pg-ink);
}
.ps-password-gate-copy {
  max-width: none;
  margin: 10px 0 4px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pg-muted);
}
@media (min-width: 920px) {
  .ps-password-gate-card {
    padding-top: 48px;
  }
  .ps-password-gate-title {
    font-size: 38px;
  }
}

/* ---- Fields ------------------------------------------------------------------- */

.ps-password-gate-email,
.ps-password-gate-form {
  margin-top: 20px;
  gap: 20px;
}
.ps-password-gate-email {
  gap: 8px;
}
.ps-password-gate-label {
  gap: 8px;
}
.ps-password-gate-label-text {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--pg-ink);
}
.ps-password-gate-input,
.ps-password-gate-email-view {
  height: 52px;
  border: 1px solid var(--pg-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  color: var(--pg-ink);
}
.ps-password-gate-input {
  padding: 12px 16px;
  background: var(--pg-card);
}
/* Read until the pencil is pressed: the soft panel says so, as before. */
.ps-password-gate-email-view {
  background: var(--pg-panel);
}
.ps-password-gate-input:focus,
.ps-password-gate-input:focus-visible {
  border-color: var(--pg-forest);
  outline: 2px solid var(--pg-apricot);
  outline-offset: 2px;
  box-shadow: none;
}
.ps-password-gate-email-hint,
.ps-password-gate .ui-help {
  font-size: 13.5px;
  color: var(--pg-muted);
}
.ps-password-gate-email-edit,
.ps-password-gate-reveal {
  color: var(--pg-ink);
}
.ps-password-gate-email-edit:focus-visible,
.ps-password-gate-reveal:focus-visible {
  outline: 2px solid var(--pg-apricot);
  outline-offset: 0;
}
.ps-password-gate-email-save,
.ps-password-gate-email-cancel {
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
}
.ps-password-gate-email-save {
  background: var(--pg-forest);
}
.ps-password-gate-error {
  color: var(--pg-link);
  font-size: 13px;
}

/* ---- The button: the checkout's Continue ------------------------------------------ */

.ps-password-gate-submit.ui-btn--main {
  min-height: 52px;
  margin-top: 4px;
  padding: 14px 26px;
  border: 0;
  border-radius: 8px;
  background: var(--pg-forest);
  color: var(--pg-page);
  font: 600 16px/1.2 'Geist', system-ui, sans-serif;
  letter-spacing: 0;
}
.ps-password-gate-submit.ui-btn--main:hover:not(:disabled) {
  background: var(--pg-forest);
  opacity: 0.9;
}
.ps-password-gate-submit:focus-visible {
  outline: 2px solid var(--pg-apricot);
  outline-offset: 2px;
}

/* ---- The way out -------------------------------------------------------------------- */

.ps-password-gate-signout {
  align-self: center;
  margin-top: 20px;
  color: var(--pg-muted);
  font-family: inherit;
  font-size: 14px;
}
