:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #173b3d;
  background: #f7faf9;
  font-synthesis: none;
  line-height: 1.5;
  --ink: #173b3d;
  --muted: #607678;
  --teal: #0b5f63;
  --teal-deep: #084b4f;
  --coral: #f26657;
  --coral-deep: #da4c40;
  --line: #d9e5e3;
  --surface: #ffffff;
  --shadow: 0 24px 70px rgba(18, 64, 65, .12);
}

* { box-sizing: border-box; }
html { min-width: 20rem; background: #f7faf9; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
a { color: var(--teal); text-underline-offset: .2em; }
a:hover { color: var(--teal-deep); }

.account-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(25rem, .82fr) minmax(36rem, 1.18fr);
}

.brand-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(2rem, 4vw, 4.25rem);
  color: #f5fffe;
  background:
    radial-gradient(circle at 82% 14%, rgba(247, 184, 59, .2), transparent 19rem),
    radial-gradient(circle at 2% 74%, rgba(242, 102, 87, .25), transparent 21rem),
    linear-gradient(145deg, #073f44 0%, #0a5d61 52%, #0c7071 100%);
}

.brand-panel::before,
.brand-panel::after,
.brand-panel__glow {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}
.brand-panel::before { width: 29rem; height: 29rem; right: -13rem; top: 12%; }
.brand-panel::after { width: 18rem; height: 18rem; right: -8rem; top: calc(12% + 5.5rem); }
.brand-panel__glow { width: 35rem; height: 35rem; left: -25rem; bottom: -14rem; background: rgba(255, 255, 255, .035); }

.brand { display: flex; align-items: center; gap: .8rem; font-weight: 760; letter-spacing: -.02em; }
.brand__mark { width: 2.85rem; height: 2.85rem; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .16)); }
.brand__name { font-size: 1.3rem; }
.brand-panel__content { width: min(100%, 35rem); margin: auto 0; padding: clamp(3rem, 8vh, 6rem) 0; }
.eyebrow { margin: 0 0 1rem; color: #a9e4df; font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.brand-panel h1 { max-width: 31rem; margin: 0; color: #fff; font-size: clamp(2.65rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.brand-panel__lead { max-width: 33rem; margin: 1.5rem 0 0; color: rgba(240, 255, 253, .82); font-size: clamp(1rem, 1.4vw, 1.18rem); line-height: 1.72; }

.benefit-list { display: grid; gap: 1.25rem; margin: 2.75rem 0 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 1rem; color: rgba(240, 255, 253, .78); font-size: .92rem; }
.benefit-list strong { display: block; margin-bottom: .05rem; color: #fff; font-size: .96rem; }
.benefit-list__icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid rgba(169, 228, 223, .24); border-radius: .9rem; color: #a9e4df; background: rgba(255, 255, 255, .08); }
.benefit-list__icon--coral { color: #ffb1a8; border-color: rgba(255, 177, 168, .22); }
.benefit-list__icon--gold { color: #ffd780; border-color: rgba(255, 215, 128, .22); }
.benefit-list svg { width: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.brand-panel__footer { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: rgba(238, 255, 253, .62); font-size: .78rem; }
.brand-panel__footer a { color: inherit; }

.account-panel { display: flex; align-items: center; min-height: 100vh; padding: clamp(2rem, 5vw, 5.5rem); background: #f7faf9; }
.account-panel__inner { width: min(100%, 42rem); margin: auto; }
.mobile-brand { display: none; }
.auth-card { border: 1px solid rgba(217, 229, 227, .9); border-radius: 1.5rem; background: var(--surface); }
.auth-card--primary { padding: clamp(1.6rem, 4vw, 2.75rem); box-shadow: var(--shadow); }
.auth-card--secondary { padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 12px 38px rgba(18, 64, 65, .07); }

.section-heading__kicker { margin: 0 0 .35rem; color: var(--coral-deep); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: var(--ink); font-size: clamp(1.85rem, 3vw, 2.45rem); line-height: 1.1; letter-spacing: -.035em; }
.section-heading p { margin: .65rem 0 0; color: var(--muted); }
.section-heading--compact h2 { font-size: 1.45rem; }
.section-heading--compact p { font-size: .92rem; }

.form-stack { display: grid; gap: 1.05rem; margin-top: 1.65rem; }
.form-stack--compact { margin-top: 1rem; }
.form-stack--two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }
.field { display: grid; gap: .45rem; color: #294e50; font-size: .86rem; font-weight: 700; }
.field small { color: var(--muted); font-size: .77rem; font-weight: 500; }
.field__control { position: relative; display: block; }
.field__control svg { position: absolute; top: 50%; left: .95rem; width: 1.1rem; transform: translateY(-50%); fill: none; stroke: #789091; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field input:not([type="checkbox"]) { width: 100%; min-height: 3.15rem; padding: .72rem .95rem .72rem 2.85rem; border: 1px solid #cad9d7; border-radius: .8rem; outline: 0; color: var(--ink); background: #fbfdfd; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.field input::placeholder { color: #9aacac; }
.field input:hover { border-color: #9eb8b6; background: #fff; }
.field input:focus { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(11, 95, 99, .12); }
.check-field { display: grid; grid-template-columns: auto 1fr; gap: .65rem; align-items: start; color: var(--muted); font-size: .8rem; line-height: 1.45; cursor: pointer; }
.check-field input { width: 1.1rem; height: 1.1rem; margin: .06rem 0 0; accent-color: var(--teal); }

.button { display: flex; justify-content: center; align-items: center; gap: .65rem; min-height: 3.25rem; padding: .75rem 1.1rem; border: 1px solid transparent; border-radius: .82rem; font-weight: 760; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .58; cursor: default; }
.button--primary { color: #fff; background: var(--teal); box-shadow: 0 10px 24px rgba(11, 95, 99, .2); }
.button--primary:hover:not(:disabled) { background: var(--teal-deep); box-shadow: 0 13px 28px rgba(11, 95, 99, .26); }
.button--accent { color: #fff; background: var(--coral); box-shadow: 0 9px 22px rgba(242, 102, 87, .2); }
.button--accent:hover:not(:disabled) { background: var(--coral-deep); box-shadow: 0 12px 26px rgba(242, 102, 87, .25); }
.button--secondary { color: var(--teal); border-color: #a9c7c5; background: #fff; }
.button--secondary:hover:not(:disabled) { background: #eef7f6; }

.form-status { min-height: 0; margin: .9rem 0 0; color: #9d392f; font-size: .84rem; font-weight: 650; }
.form-status:empty { display: none; }
.form-status form { display: inline-block; margin-top: .6rem; }
.form-status button { padding: .55rem .75rem; border: 1px solid #a9c7c5; border-radius: .65rem; color: var(--teal); background: #fff; cursor: pointer; }
.recovery { margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.recovery summary { width: max-content; color: var(--teal); font-size: .86rem; font-weight: 750; cursor: pointer; list-style: none; }
.recovery summary::-webkit-details-marker { display: none; }
.recovery summary::after { content: " +"; }
.recovery[open] summary::after { content: " −"; }
.recovery__body { margin-top: 1rem; padding: 1rem; border-radius: 1rem; background: #f4f9f8; }
.recovery__body > p { margin: 0; color: var(--muted); font-size: .84rem; }
.account-divider { display: flex; align-items: center; gap: .85rem; margin: 1.55rem 0; color: #819494; font-size: .74rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.account-divider::before, .account-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.account-panel__note { margin: 1.25rem auto 0; color: #7a8c8c; font-size: .74rem; text-align: center; }
:focus-visible { outline: 3px solid #126fbd; outline-offset: 3px; }

@media (max-width: 64rem) {
  .account-shell { grid-template-columns: minmax(21rem, .78fr) minmax(31rem, 1.22fr); }
  .brand-panel { padding: 2.5rem; }
  .brand-panel h1 { font-size: clamp(2.5rem, 5vw, 3.6rem); }
  .account-panel { padding: 2.5rem; }
}

@media (max-width: 50rem) {
  .account-shell { display: block; }
  .brand-panel { display: none; }
  .account-panel { min-height: 100vh; padding: 1.25rem; background: linear-gradient(160deg, #edf7f5 0%, #f9fbfa 42%, #fff4f1 100%); }
  .account-panel__inner { max-width: 38rem; }
  .mobile-brand { display: flex; justify-content: center; align-items: center; gap: .65rem; margin: .4rem 0 1.25rem; color: var(--ink); font-size: 1.18rem; font-weight: 780; }
  .mobile-brand img { width: 2.45rem; height: 2.45rem; }
}

@media (max-width: 34rem) {
  .account-panel { align-items: flex-start; padding: .9rem; }
  .auth-card { border-radius: 1.15rem; }
  .auth-card--primary, .auth-card--secondary { padding: 1.25rem; }
  .form-stack--two-column { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .section-heading h2 { font-size: 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
