:root {
  color-scheme: light;
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #25221e;
  background: #f5f2e8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --saffron: #c98b18;
  --saffron-deep: #a96f08;
  --saffron-soft: #f7e9c8;
  --cream: #f5f2e8;
  --paper: #fffefa;
  --ink: #25221e;
  --muted: #817d75;
  --violet: #8856dc;
  --line: #e9e3d7;
  --shadow: 0 22px 60px rgba(94, 70, 25, 0.09), 0 3px 12px rgba(50, 39, 22, 0.04);
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--cream); }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(231, 182, 82, 0.15), transparent 32rem),
    radial-gradient(ellipse at 92% 88%, rgba(140, 91, 221, 0.07), transparent 25rem),
    var(--cream);
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(100% - 40px, 1100px);
  min-height: 100vh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  padding: 32px 0 22px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  animation: fade-in 450ms ease-out both;
}

.brand-mark { width: 42px; height: 46px; flex: 0 0 auto; }
.brand-copy { display: grid; gap: 2px; }
.brand-name { color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.brand-caption { color: var(--muted); font-size: 12px; font-weight: 600; }

.secure-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(201, 139, 24, .2);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 254, 250, .74);
  color: #72521d;
  font-size: 12px;
  font-weight: 750;
}

.secure-dot { width: 7px; height: 7px; border-radius: 50%; background: #57a67a; box-shadow: 0 0 0 3px rgba(87, 166, 122, .12); }

.access-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  align-items: center;
  gap: clamp(36px, 8vw, 112px);
  padding: 70px clamp(12px, 5vw, 74px) 62px;
}

.intro-copy { max-width: 500px; animation: rise-in 520ms 60ms ease-out both; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; color: var(--violet); font-size: 12px; font-weight: 900; letter-spacing: .17em; }
.eyebrow-rule { width: 24px; height: 3px; border-radius: 3px; background: var(--saffron); }

h1 {
  max-width: 570px;
  margin: 0;
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: 1.04;
  letter-spacing: -.055em;
  font-weight: 900;
  text-wrap: balance;
}

.title-highlight { color: var(--saffron); }
.subheading { max-width: 540px; margin: 18px 0 0; color: var(--ink); font-size: clamp(20px, 2.5vw, 28px); line-height: 1.25; font-weight: 850; letter-spacing: -.03em; text-wrap: balance; }
.supporting-copy { max-width: 380px; margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; font-weight: 550; }

.access-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(224, 216, 201, .9);
  border-radius: 30px;
  padding: 30px 30px 0;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: rise-in 570ms 130ms ease-out both;
}

.card-topline { position: absolute; inset: 0 0 auto; height: 5px; display: flex; }
.card-topline span:nth-child(1) { width: 67%; background: var(--saffron); }
.card-topline span:nth-child(2) { width: 23%; background: #a879e8; }
.card-topline span:nth-child(3) { flex: 1; background: #f0dcae; }

.card-heading-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; flex: 0 0 auto; border-radius: 18px; color: var(--saffron); background: #fbf2dd; }
.card-icon svg { width: 38px; height: 38px; }
.card-kicker { margin: 0 0 5px; color: var(--violet); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
h2 { margin: 0; font-size: 21px; line-height: 1.2; letter-spacing: -.03em; font-weight: 850; }

.access-form label { display: block; margin: 0 0 9px; color: #39352f; font-size: 13px; font-weight: 800; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon { position: absolute; left: 16px; width: 21px; height: 21px; color: #9a8d76; pointer-events: none; }

.input-wrap input {
  width: 100%;
  min-height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  outline: none;
  padding: 0 50px 0 48px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap input::placeholder { color: #aaa49a; font-weight: 500; }
.input-wrap input:hover { border-color: #d9c9a7; }
.input-wrap input:focus-visible { border-color: var(--saffron); background: #fffefa; box-shadow: 0 0 0 4px rgba(201, 139, 24, .13); }
.input-wrap input[aria-invalid="true"] { border-color: #d95c57; box-shadow: 0 0 0 4px rgba(217, 92, 87, .1); }

.reveal-button { position: absolute; right: 9px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 12px; background: transparent; color: #817a6e; cursor: pointer; }
.reveal-button:hover { background: #f5f1e8; color: #453c2e; }
.reveal-button:focus-visible { outline: 3px solid rgba(136, 86, 220, .35); outline-offset: 1px; }
.reveal-button svg { width: 21px; height: 21px; }
.field-hint { margin: 9px 1px 18px; color: #8b867d; font-size: 11px; line-height: 1.5; }

.submit-button {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, #d59a25 0%, #bc7d0f 100%);
  box-shadow: 0 9px 18px rgba(188, 125, 15, .2), inset 0 1px rgba(255, 255, 255, .25);
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.submit-button:hover:not(:disabled) { transform: translateY(-1px); filter: saturate(1.07); box-shadow: 0 12px 23px rgba(188, 125, 15, .25), inset 0 1px rgba(255, 255, 255, .25); }
.submit-button:active:not(:disabled) { transform: translateY(1px) scale(.99); box-shadow: 0 4px 9px rgba(188, 125, 15, .18); }
.submit-button:focus-visible { outline: 4px solid rgba(136, 86, 220, .27); outline-offset: 3px; }
.submit-button:disabled { cursor: wait; opacity: .78; }
.button-arrow { width: 20px; height: 20px; transition: transform 150ms ease; }
.submit-button:hover .button-arrow { transform: translateX(3px); }

.form-status { min-height: 21px; margin: 11px 0 0; color: #a0443e; font-size: 12px; font-weight: 700; line-height: 1.5; }
.form-status[data-state="success"] { color: #3d8059; }
.form-status[data-state="info"] { color: #726b60; }
.card-footer { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 57px; margin: 8px -30px 0; border-top: 1px solid #f0ece4; color: #8b867e; background: #fffdf8; font-size: 11px; font-weight: 650; }
.footer-check { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #eef5ed; color: #528968; font-size: 11px; font-weight: 900; }

.page-footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 0 2px; color: #9a9385; font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.footer-spark { color: #c99534; font-size: 12px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1000px) {
  .page-shell { min-height: min(100vh, 920px); }
  .access-layout { padding-top: 82px; padding-bottom: 76px; }
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 32px, 520px); padding-top: 22px; padding-bottom: 17px; }
  .brand-row { gap: 10px; }
  .brand-mark { width: 38px; height: 42px; }
  .brand-name { font-size: 10px; letter-spacing: .12em; }
  .brand-caption { font-size: 11px; }
  .secure-pill { padding: 8px 10px; font-size: 10px; }
  .access-layout { display: flex; flex-direction: column; align-items: stretch; gap: 27px; padding: clamp(48px, 10vh, 78px) 2px 48px; }
  .intro-copy { max-width: none; }
  .eyebrow { margin-bottom: 16px; }
  h1 { max-width: 480px; font-size: clamp(40px, 11.5vw, 58px); }
  .subheading { margin-top: 13px; font-size: clamp(20px, 6vw, 25px); }
  .supporting-copy { margin-top: 9px; font-size: 14px; }
  .access-card { width: 100%; border-radius: 25px; padding: 25px 22px 0; }
  .card-heading-row { gap: 12px; margin-bottom: 22px; }
  .card-icon { width: 48px; height: 48px; border-radius: 16px; }
  .card-icon svg { width: 34px; height: 34px; }
  h2 { font-size: 19px; }
  .card-footer { margin-inline: -22px; }
  .page-footer { margin-top: auto; }
}

@media (max-width: 380px) {
  .page-shell { width: calc(100% - 26px); }
  .secure-pill { gap: 6px; padding: 7px 8px; }
  .secure-dot { width: 6px; height: 6px; }
  .access-layout { padding-top: 43px; }
  h1 { font-size: 39px; }
  .access-card { padding-inline: 18px; }
  .card-footer { margin-inline: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
