:root {
  color-scheme: light;
  --ink: #14211d;
  --forest: #173c32;
  --mint: #b9f7d3;
  --paper: #f4f1e9;
  --white: #fffefa;
  --muted: #66736e;
  --line: #d9ddd8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
.hidden { display: none !important; }
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); }
.intro { padding: 48px clamp(32px, 6vw, 96px); background: var(--forest); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.intro::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(185, 247, 211, .22); border-radius: 50%; right: -170px; bottom: -170px; box-shadow: 0 0 0 72px rgba(185, 247, 211, .04), 0 0 0 144px rgba(185, 247, 211, .025); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--mint); border-radius: 10px; color: var(--mint); }
.intro-copy { max-width: 660px; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--mint); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: #28785e; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 7vw, 7.5rem); font-weight: 500; line-height: .9; letter-spacing: -.055em; }
.lead { max-width: 570px; margin: 34px 0 0; color: #d4e2dc; font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.65; }
.security-note { max-width: 420px; margin: 48px 0 0; color: #a9c0b7; font-size: .88rem; line-height: 1.6; }
.account-panel { padding: 32px; display: grid; place-items: center; }
.card, .state-card { width: min(100%, 470px); }
.card { padding: clamp(30px, 5vw, 54px); background: var(--white); border: 1px solid rgba(20, 33, 29, .08); border-radius: 24px; box-shadow: 0 24px 80px rgba(23, 60, 50, .1); }
.state-card { color: var(--muted); text-align: center; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; font-weight: 500; letter-spacing: -.035em; }
.muted { margin: 14px 0 28px; color: var(--muted); line-height: 1.55; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0; padding: 4px; background: #edf0eb; border-radius: 12px; }
.tab { padding: 10px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.tab.active { color: var(--ink); background: var(--white); box-shadow: 0 2px 10px rgba(20, 33, 29, .08); }
form { display: grid; gap: 9px; }
label { margin-top: 7px; font-size: .86rem; font-weight: 750; }
input { width: 100%; padding: 14px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; outline: none; }
input:focus { border-color: #28785e; box-shadow: 0 0 0 3px rgba(40, 120, 94, .12); }
.primary, .secondary { width: 100%; padding: 14px 18px; border-radius: 11px; font-weight: 800; cursor: pointer; }
.link-button { display: block; text-align: center; text-decoration: none; }
.primary { margin-top: 10px; border: 1px solid var(--forest); background: var(--forest); color: white; }
.primary:hover:not(:disabled) { background: #205344; }
.primary:disabled { cursor: not-allowed; opacity: .55; }
.secondary { margin-top: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.error { min-height: 20px; margin: 3px 0 0; color: #a63b32; font-size: .84rem; }
.terms { margin: 22px 0 0; color: #8a938f; font-size: .76rem; line-height: 1.5; text-align: center; }
.empty-state { display: flex; gap: 16px; margin: 30px 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #f7f8f4; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.empty-state.connected { border-color: #7bc7a5; background: #edf9f3; }
.step-number { color: #28785e; font-weight: 900; }
.connection-badge { margin: -8px 0 18px; padding: 12px 14px; border-radius: 11px; background: #dff5e9; color: #176246; font-size: .9rem; font-weight: 800; text-align: center; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .intro { min-height: 48vh; padding: 30px 26px 38px; gap: 54px; }
  h1 { font-size: clamp(3.2rem, 15vw, 5.5rem); }
  .security-note { display: none; }
  .account-panel { padding: 22px 16px 38px; }
  .card { padding: 30px 24px; border-radius: 19px; }
}
