:root {
  color-scheme: light;
  --page: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-soft: #f2f2f7;
  --label: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #8e8e93;
  --hairline: rgba(29, 29, 31, 0.1);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --green-soft: #e8f7ec;
  --red: #d70015;
  --red-hover: #e1152a;
  --red-soft: #fff0f1;
  --shadow-large: 0 32px 80px rgba(20, 34, 55, 0.13), 0 3px 12px rgba(20, 34, 55, 0.06);
  --shadow-control: 0 1px 2px rgba(0, 0, 0, 0.06), 0 5px 16px rgba(0, 113, 227, 0.18);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 8%, rgba(91, 180, 255, 0.18), transparent 34%),
    radial-gradient(circle at 92% 88%, rgba(125, 92, 255, 0.12), transparent 31%),
    var(--page);
  color: var(--label);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input { font: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.26;
  pointer-events: none;
}

.ambient-one { top: -210px; right: -120px; background: #61b9ff; }
.ambient-two { bottom: -260px; left: -150px; background: #8f7cff; }

.shell {
  width: min(calc(100% - 40px), 1120px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 0 max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 62px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--label);
  text-decoration: none;
}

.brand-logo-frame {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, #111b2a, #05080d);
  box-shadow: 0 10px 24px rgba(7, 17, 29, 0.18), inset 0 1px rgba(255, 255, 255, 0.12);
}

.brand-logo-frame img {
  position: absolute;
  top: -3px;
  left: 50%;
  width: auto;
  max-width: none;
  height: 70px;
  display: block;
  transform: translateX(-50%);
}

.brand-copy { min-width: 0; display: grid; gap: 2px; }

.brand-copy strong {
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small { color: var(--secondary); font-size: 12px; font-weight: 500; }

.secure-badge {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.secure-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.12);
}

.experience {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(440px, 1.15fr);
  gap: 18px;
  align-items: stretch;
}

.story-panel, .card { border-radius: 36px; }

.story-panel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 22%, rgba(28, 179, 255, 0.3), transparent 33%),
    radial-gradient(circle at 86% 8%, rgba(255, 191, 94, 0.14), transparent 29%),
    linear-gradient(152deg, #12263a 0%, #07101c 58%, #020407 100%);
  color: #ffffff;
  box-shadow: var(--shadow-large);
}

.story-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 35px;
  pointer-events: none;
}

.story-panel::after {
  content: "";
  position: absolute;
  z-index: -2;
  right: -85px;
  bottom: -115px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(72, 203, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(72, 203, 255, 0.04), 0 0 0 86px rgba(72, 203, 255, 0.025);
}

.story-logo-frame {
  position: absolute;
  top: 12px;
  left: 50%;
  width: calc(100% - 48px);
  height: 230px;
  overflow: hidden;
  transform: translateX(-50%);
  pointer-events: none;
}

.story-logo-frame img {
  position: absolute;
  top: -7px;
  left: 50%;
  width: auto;
  max-width: none;
  height: 224px;
  display: block;
  transform: translateX(-50%);
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.28));
}

.story-copy { position: relative; z-index: 1; }
.story-kicker, .eyebrow { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.13em; }
.story-kicker { color: #76d5ff; }

.story-copy h2 {
  margin: 12px 0 15px;
  font-size: clamp(32px, 4vw, 47px);
  font-weight: 700;
  letter-spacing: -0.052em;
  line-height: 1.04;
}

.story-copy h2 span { color: rgba(255, 255, 255, 0.68); }

.story-copy > p:last-child {
  max-width: 36ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.65;
}

.trust-list {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  padding-top: 20px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-list span { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, 0.78); font-size: 12px; font-weight: 550; }

.trust-list i {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(72, 203, 255, 0.13);
  color: #7ddcff;
  font-size: 11px;
  font-style: normal;
}

.card {
  min-width: 0;
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: var(--surface);
  box-shadow: var(--shadow-large);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
}

.page-header { margin-bottom: 26px; }
.eyebrow { color: var(--blue); }
h1, h2, p { overflow-wrap: anywhere; }

h1 {
  margin: 8px 0 0;
  font-size: clamp(32px, 5.2vw, 48px);
  font-weight: 720;
  letter-spacing: -0.052em;
  line-height: 1.02;
}

h2 { margin: 30px 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.025em; }
.lead { margin: -8px 0 24px; color: var(--secondary); font-size: 15px; line-height: 1.62; }
.stack { display: grid; gap: 13px; }
.field { display: grid; gap: 8px; }
.field > span { color: var(--label); font-size: 13px; font-weight: 650; }
.field > small, .profile small, .row small { color: var(--secondary); font-size: 12px; line-height: 1.5; }

input {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  outline: 0;
  background: var(--surface-soft);
  color: var(--label);
  font-size: 16px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input:hover { border-color: var(--hairline); }
input:focus { border-color: var(--blue); background: var(--surface-solid); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13); }
input:disabled { color: var(--secondary); -webkit-text-fill-color: var(--secondary); opacity: 1; }

button, .button {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 15px;
  appearance: none;
  background: linear-gradient(180deg, var(--blue-hover), var(--blue));
  box-shadow: var(--shadow-control);
  color: #ffffff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

button:hover, .button:hover { filter: brightness(1.035); transform: translateY(-1px); }
button:active, .button:active { filter: brightness(0.96); transform: translateY(0) scale(0.99); }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; filter: none; opacity: 0.46; transform: none; }

.button.secondary, button.secondary, .button.google {
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--label);
}

.button.google { position: relative; }

.button.google::before {
  content: "G";
  position: absolute;
  left: 17px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-size: 13px;
  font-weight: 800;
}

.button.danger, button.danger {
  background: linear-gradient(180deg, var(--red-hover), var(--red));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 5px 16px rgba(215, 0, 21, 0.16);
}

button:focus-visible, .button:focus-visible, input:focus-visible, .brand:focus-visible, .links a:focus-visible, .account-action:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.32);
  outline-offset: 3px;
}

.divider {
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--hairline); }
.links { margin-top: 21px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.links a, .row a { color: var(--blue); font-size: 14px; font-weight: 550; text-underline-offset: 3px; }

.notice {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(36, 138, 61, 0.13);
  border-radius: 14px;
  background: var(--green-soft);
  color: #1c6b31;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}

.notice.error { border-color: rgba(215, 0, 21, 0.12); background: var(--red-soft); color: #a70010; }

.profile {
  margin: 12px 0 18px;
  padding: 17px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.rows {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
}

.row {
  min-height: 62px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
}

.row:last-child { border-bottom: 0; }
.row > small { flex: 0 0 auto; text-align: right; }

.account-profile {
  margin: -4px 0 25px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(242, 247, 255, 0.8));
}

.account-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #65b9ff, #0878da);
  box-shadow: 0 8px 22px rgba(0, 113, 227, 0.22);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-profile-copy { min-width: 0; display: grid; gap: 3px; }
.account-profile-copy strong, .account-profile-copy span, .account-profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-profile-copy strong { font-size: 17px; letter-spacing: -0.02em; }
.account-profile-copy span { color: var(--secondary); font-size: 13px; }
.account-profile-copy small { color: var(--tertiary); font-size: 10px; }
.account-section { margin-top: 25px; }

.account-section-title {
  margin: 0 0 8px 4px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-menu {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.account-action {
  position: relative;
  min-height: 68px;
  padding: 10px 42px 10px 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid var(--hairline);
  color: var(--label);
  text-decoration: none;
  transition: background 150ms ease;
}

.account-action:last-child { border-bottom: 0; }

.account-action::after {
  content: "›";
  position: absolute;
  right: 17px;
  top: 50%;
  color: #b0b0b5;
  font-size: 27px;
  font-weight: 300;
  transform: translateY(-53%);
}

.account-action:hover { background: rgba(0, 113, 227, 0.045); }

.account-action-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blue);
  color: #ffffff;
  font-size: 18px;
  font-weight: 650;
  line-height: 1;
}

.account-action-copy { min-width: 0; display: grid; gap: 3px; }
.account-action-copy strong { font-size: 14px; font-weight: 620; letter-spacing: -0.012em; }
.account-action-copy small { color: var(--secondary); font-size: 11px; line-height: 1.35; }
.account-action.purple .account-action-icon { background: #5e5ce6; }
.account-action.green .account-action-icon { background: #34c759; }
.account-action.orange .account-action-icon { background: #ff9500; }
.account-action.red { color: var(--red); }
.account-action.red .account-action-icon { background: var(--red); }
.account-action.red::after { color: rgba(215, 0, 21, 0.46); }
.account-signout { margin: 10px 0 0; }
.account-signout button { min-height: 48px; background: transparent; box-shadow: none; color: var(--blue); }

footer {
  min-height: 54px;
  padding: 17px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--tertiary);
  font-size: 11px;
  text-align: center;
}

footer span:first-child { color: var(--secondary); font-weight: 650; }

@media (max-width: 900px) {
  .shell { width: min(calc(100% - 28px), 660px); }
  .experience { grid-template-columns: 1fr; }
  .story-panel { min-height: 315px; padding: 30px; }
  .story-logo-frame { top: -10px; left: auto; right: -5px; width: 280px; height: 220px; transform: none; opacity: 0.74; }
  .story-copy { max-width: 410px; }
  .story-copy h2 { font-size: 36px; }
  .trust-list { max-width: 460px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 20px), 520px); padding-top: max(12px, env(safe-area-inset-top)); }
  .site-header { margin: 0 4px 12px; }
  .secure-badge { display: none; }
  .brand-logo-frame { width: 48px; height: 48px; flex-basis: 48px; border-radius: 15px; }
  .brand-logo-frame img { height: 65px; }
  .story-panel, .card { border-radius: 28px; }
  .story-panel { min-height: 236px; padding: 25px; }
  .story-panel::before { border-radius: 27px; }
  .story-logo-frame { top: -28px; right: -52px; width: 250px; height: 210px; opacity: 0.4; }
  .story-logo-frame img { height: 204px; }
  .story-copy h2 { max-width: 300px; margin-bottom: 10px; font-size: 31px; }
  .story-copy > p:last-child { max-width: 31ch; font-size: 13px; }
  .trust-list { display: none; }
  .card { padding: 29px 22px; }
  .page-header { margin-bottom: 23px; }
  h1 { font-size: 34px; }
  .row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .row > small { text-align: left; }
  .account-profile { padding: 15px; }
}

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

@media (forced-colors: active) {
  .story-panel, .card, .account-menu, .rows, .profile, .account-profile { border: 1px solid CanvasText; }
}
