:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17251d;
  background: #f5f7f1;
  --green-950: #073f2c;
  --green-700: #157a43;
  --green-100: #eaf5dc;
  --border: #d9e3d9;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }

.access-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 560px);
}

.access-brand {
  padding: clamp(32px, 6vw, 88px);
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(153, 220, 75, .24), transparent 28%),
    linear-gradient(145deg, #053523, #0a6440);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 54px;
}

.brand-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; font-size: 23px; }
.brand-link img { width: 54px; height: 54px; object-fit: contain; }
.eyebrow, .step-label { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #a8da76; }
.access-brand h1 { max-width: 660px; margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.access-brand p:not(.eyebrow) { max-width: 600px; color: #dcebe1; font-size: 18px; line-height: 1.6; }
.access-brand ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px 24px; color: #e9f4ec; }
.access-brand li span { color: #a8da76; font-weight: 900; }

.access-card {
  margin: auto;
  width: min(100% - 48px, 450px);
  padding: 42px 0;
}

.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 42px; background: #e9eee8; border-radius: 14px; }
.mode-tabs button { border: 0; border-radius: 11px; padding: 13px; background: transparent; color: #526358; font-weight: 700; }
.mode-tabs button.active { background: #fff; color: var(--green-950); box-shadow: 0 3px 14px rgba(22, 47, 31, .08); }
.access-card .step-label { color: var(--green-700); }
.access-card h2 { margin: 0; font-size: 32px; letter-spacing: -.035em; }
.supporting-copy { margin: 10px 0 28px; color: #6f7b73; line-height: 1.55; }
form { display: grid; gap: 10px; margin-top: 26px; }
label { margin-top: 5px; font-size: 14px; font-weight: 750; }
input { width: 100%; border: 1px solid var(--border); border-radius: 13px; padding: 15px 16px; background: #fff; color: #17251d; outline: none; }
input:focus { border-color: #5aa941; box-shadow: 0 0 0 4px rgba(90, 169, 65, .12); }
form small { margin: -3px 0 5px; color: #526358; }
.recovery-link { justify-self: end; color: var(--green-700); font-size: 14px; font-weight: 750; text-decoration: none; }
.recovery-link:hover { text-decoration: underline; }
.primary-button { margin-top: 12px; border: 0; border-radius: 13px; padding: 16px 18px; background: var(--green-700); color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(21, 122, 67, .18); }
.primary-button:hover { background: #0e6636; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.access-confirmation { display: flex; gap: 9px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--green-100); color: #31572b; line-height: 1.4; }
.access-confirmation > span:first-child { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #3ba53c; color: #fff; font-weight: 800; }
.form-message { min-height: 24px; margin: 18px 0 0; color: #b83f35; font-size: 14px; }
.form-message.success { color: #157a43; }
.privacy-note { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--border); color: #526358; font-size: 12px; line-height: 1.5; }

@media (max-width: 820px) {
  .access-shell { display: block; }
  .access-brand { min-height: auto; padding: 28px 24px 34px; gap: 32px; }
  .access-brand h1 { font-size: 42px; }
  .access-brand p:not(.eyebrow) { font-size: 16px; }
  .access-brand ul { display: none; }
  .access-card { width: min(100% - 40px, 480px); padding: 34px 0; }
  .mode-tabs { margin-bottom: 32px; }
}

/* The official logo includes the PapaDiet wordmark. */
.brand-link { align-self:flex-start; }
.brand-link img { width:140px; height:140px; flex:none; }
.brand-link > span { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:820px){ .brand-link img { width:88px; height:88px; } }

:where(a,button,input):focus-visible{outline:3px solid #073f2c;outline-offset:3px;box-shadow:0 0 0 5px #fff}
