@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #1b2340;
  --muted: #737b92;
  --soft-muted: #98a0b3;
  --line: #e8eaf1;
  --paper: #fff;
  --canvas: #f3f5fa;
  --blue: #5266e8;
  --blue-deep: #394fc9;
  --blue-pale: #eef0ff;
  --mint: #dff7ef;
  --mint-ink: #1f806a;
  --danger: #ba3346;
  --shadow: 0 30px 85px rgba(37, 50, 99, .12), 0 3px 12px rgba(43, 53, 88, .04);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 11% 4%, rgba(222, 230, 255, .8), transparent 31rem),
    radial-gradient(ellipse at 98% 98%, rgba(220, 247, 241, .72), transparent 28rem),
    var(--canvas);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(82, 102, 232, .28);
  outline-offset: 2px;
}
[hidden], .hidden { display: none !important; }

.auth-page {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 32px;
}
.auth-frame {
  display: grid;
  grid-template-columns: minmax(320px, .88fr) minmax(440px, 1.12fr);
  width: min(100%, 1040px);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(226, 230, 240, .9);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.auth-frame-compact { width: min(100%, 970px); min-height: 650px; }
.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 38px 42px 30px;
  color: #fff;
  background:
    radial-gradient(ellipse at 12% 90%, rgba(45, 209, 197, .28), transparent 34%),
    radial-gradient(ellipse at 98% 7%, rgba(151, 137, 255, .36), transparent 36%),
    linear-gradient(148deg, #303c89 0%, #273772 47%, #1e5675 100%);
}
.auth-story::before, .auth-story::after {
  position: absolute;
  pointer-events: none;
  content: '';
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}
.auth-story::before { width: 410px; height: 410px; right: -245px; top: 78px; }
.auth-story::after { width: 570px; height: 570px; right: -320px; top: 0; }
.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 10px;
  font-family: Manrope, 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.7px;
}
.brand-symbol { display: grid; width: 30px; height: 30px; place-items: center; color: #a7f0e0; }
.brand-symbol svg { width: 100%; height: 100%; }
.brand-dot { color: #a7f0e0; }
.story-content { position: relative; z-index: 1; margin: auto 0; padding: 54px 0 40px; }
.eyebrow {
  margin: 0 0 18px;
  color: #b7c6ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.55px;
}
.story-content h1 {
  margin: 0;
  font-family: Manrope, 'Segoe UI', sans-serif;
  font-size: clamp(32px, 3.4vw, 43px);
  font-weight: 700;
  letter-spacing: -2.1px;
  line-height: 1.19;
}
.story-content h1 span { color: #a5eadd; }
.story-copy {
  max-width: 350px;
  margin: 19px 0 0;
  color: rgba(239, 244, 255, .77);
  font-size: 14px;
  line-height: 1.75;
}
.story-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(230, 238, 255, .65);
  font-size: 11px;
}
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(230, 238, 255, .55); }
.story-proof { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: rgba(239, 244, 255, .8); font-size: 12px; }
.proof-icon, .benefit-check {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(165, 234, 221, .45);
  border-radius: 50%;
  color: #a5eadd;
  font-size: 11px;
}
.orbit-art { position: relative; width: 232px; height: 192px; margin: 28px auto 6px; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(220, 235, 255, .2); border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.orbit-one { width: 205px; height: 92px; }
.orbit-two { width: 175px; height: 128px; transform: translate(-50%, -50%) rotate(38deg); }
.orbit-three { width: 105px; height: 175px; transform: translate(-50%, -50%) rotate(54deg); }
.orbit-core { position: absolute; left: 50%; top: 50%; display: grid; width: 65px; height: 65px; place-items: center; border: 1px solid rgba(179, 250, 232, .35); border-radius: 22px; color: #aff4e2; background: linear-gradient(145deg, rgba(161, 234, 223, .22), rgba(130, 151, 255, .25)); box-shadow: 0 0 45px rgba(140, 231, 226, .17); transform: translate(-50%, -50%) rotate(-8deg); }
.orbit-core svg { width: 31px; }
.orbit-star { position: absolute; z-index: 1; color: #f3d88b; font-style: normal; }
.star-one { top: 19px; left: 25px; font-size: 13px; }
.star-two { right: 22px; bottom: 31px; color: #adf0e2; font-size: 12px; }
.star-three { top: 43px; right: 50px; color: #d4c7ff; font-size: 9px; }
.mobile-brand { display: none; }

.auth-main { display: flex; flex-direction: column; min-width: 0; padding: 32px 56px 26px; }
.back-link { display: inline-flex; width: max-content; align-items: center; gap: 8px; color: #737b91; font-size: 12px; transition: color .15s ease; }
.back-link:hover { color: var(--blue); }
.back-link span { font-size: 17px; line-height: 1; }
.form-wrap { width: min(100%, 390px); margin: auto; padding: 28px 0 26px; }
.form-wrap-wide { width: min(100%, 430px); }
.step-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: #7c8498; font-size: 9px; font-weight: 700; letter-spacing: 1.05px; }
.step-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-pale); font-size: 9px; letter-spacing: 0; }
.form-wrap h2 { margin: 0; font-family: Manrope, 'Segoe UI', sans-serif; font-size: 29px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.2; }
.form-intro { margin: 9px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.email-emphasis { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.form-stack { display: grid; gap: 15px; }
.field { display: grid; gap: 8px; min-width: 0; color: #343c55; font-size: 12px; font-weight: 600; }
.field-heading { display: flex; justify-content: space-between; gap: 12px; }
.inline-link { color: var(--blue); font-weight: 600; }
.inline-link:hover, .text-link:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.field input, .field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #dfe3ed;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field input::placeholder { color: #b1b7c6; }
.field input:hover, .field select:hover { border-color: #bec6db; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(82, 102, 232, .11); }
.field select { appearance: auto; }
.field-hint { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.remember-device-option { display: flex; align-items: flex-start; gap: 9px; color: #586078; font-size: 11px; font-weight: 500; line-height: 1.45; }
.remember-device-option input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--blue); }
.optional-label { margin-left: 5px; color: #a0a7b8; font-size: 8px; letter-spacing: .6px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: linear-gradient(110deg, #5369eb, #596fe9); box-shadow: 0 7px 15px rgba(76, 96, 219, .19); }
.button-primary:hover { background: linear-gradient(110deg, #465bd7, #4d63d8); box-shadow: 0 9px 20px rgba(76, 96, 219, .27); }
.button-secondary { color: #4e5fd1; border: 1px solid #dce1f5; background: #f7f8ff; }
.button-secondary:hover { background: #eef0ff; }
[hidden] { display: none !important; }
.button-outline { color: #303954; border-color: #e0e4ee; background: white; }
.button-outline:hover { border-color: #c9d0e3; background: #fafbff; }
.button-arrow { margin-left: 2px; font-size: 16px; font-weight: 400; }
.button-with-icon { justify-content: flex-start; text-align: left; }
.button-with-icon .button-arrow { margin-left: auto; }
.button-icon { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-pale); font-size: 17px; font-weight: 400; }
.account-list { display: grid; gap: 8px; margin: 21px 0 14px; }
.account-item {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 13px;
  padding: 10px 13px;
  border: 1px solid #e7eaf2;
  border-radius: 13px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.account-item:hover { transform: translateY(-1px); border-color: #bdc7f4; background: #fbfbff; }
.account-avatar, .account-photo { display: grid; flex: 0 0 auto; width: 39px; height: 39px; place-items: center; overflow: hidden; border: 1px solid #e7e9f2; border-radius: 50%; color: #4959bd; background: linear-gradient(145deg, #e7eaff, #d8f6ef); font-family: Manrope, sans-serif; font-size: 13px; font-weight: 700; }
.account-photo { object-fit: cover; }
.account-meta { display: grid; min-width: 0; gap: 3px; }
.account-meta strong { overflow: hidden; color: #2d3550; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-meta span { overflow: hidden; color: #82899b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-chevron { margin-left: auto; color: #a5abc0; font-size: 18px; }
.account-loading { display: flex; align-items: center; gap: 10px; padding: 15px 3px; color: var(--muted); font-size: 12px; }
.spinner { width: 16px; height: 16px; border: 2px solid #e7e9f4; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-divider { position: relative; display: flex; align-items: center; justify-content: center; margin: 21px 0; color: #a0a7b8; font-size: 9px; font-weight: 700; letter-spacing: .9px; }
.form-divider::before, .form-divider::after { width: 32%; height: 1px; background: var(--line); content: ''; }
.form-divider span { padding: 0 12px; }
.create-link { display: flex; justify-content: center; gap: 8px; font-size: 12px; font-weight: 700; }
.text-link { color: var(--blue); font-weight: 700; }
.form-bottom { margin: 23px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.panel-footer { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: auto; padding-top: 16px; color: #9aa1b1; font-size: 10px; }
.secure-lock { color: #6d7ce1; font-size: 13px; }
.choice-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #dfe3f2; border-radius: 13px; background: #fbfbff; }
.choice-icon { display: grid; flex: 0 0 auto; width: 37px; height: 37px; place-items: center; border-radius: 11px; color: var(--blue); background: var(--blue-pale); font-size: 19px; }
.choice-copy { display: grid; gap: 4px; }
.choice-copy strong { color: #303851; font-size: 11px; }
.choice-copy span { color: #838a9d; font-size: 10px; line-height: 1.45; }
.choice-arrow { margin-left: auto; color: #8c96b7; }
.choice-disabled { margin-top: 10px; background: #fbfbfc; opacity: .77; }
.choice-icon-muted { color: #8e96a9; background: #f1f2f5; }
.coming-soon { margin-left: auto; color: #929aab; font-size: 8px; font-weight: 700; letter-spacing: .55px; white-space: nowrap; }
.signup-email-form { margin: 14px 0 21px; }
.code-input { font-family: Manrope, sans-serif; font-size: 21px; font-weight: 700; letter-spacing: .44em; text-align: center; }
.text-button { display: block; margin: 19px auto 0; padding: 5px; border: 0; color: #82899b; background: none; cursor: pointer; font-size: 11px; }
.text-button span { color: var(--blue); font-weight: 700; }
.text-button:disabled { cursor: wait; opacity: .6; }
.fine-print { margin: 17px 0 0; color: #949bad; font-size: 10px; line-height: 1.6; text-align: center; }
.notice { display: none; margin: 0 0 15px; padding: 11px 13px; border: 1px solid; border-radius: 10px; font-size: 11px; line-height: 1.5; }
.notice.success { border-color: #cbeadd; color: #27735d; background: #f0fbf6; }
.notice.error { border-color: #f3d1d5; color: var(--danger); background: #fff6f7; }
.privacy-note { display: flex; gap: 9px; margin-top: 20px; padding: 12px; border-radius: 10px; color: #747e95; background: #f5f7fc; font-size: 10px; line-height: 1.5; }
.note-icon { display: grid; flex: 0 0 auto; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: #fff; background: #9aa4c2; font-size: 10px; font-weight: 700; }
.benefit-list { display: grid; gap: 15px; margin-top: 31px; }
.benefit-list > div { display: flex; align-items: center; gap: 10px; color: rgba(239, 244, 255, .83); font-size: 12px; }
.verification-art { position: relative; display: grid; width: 205px; height: 175px; place-items: center; margin: 26px auto 15px; }
.mail-circle { display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid rgba(194, 244, 237, .34); border-radius: 30px; color: #b0f0e4; background: rgba(205, 245, 237, .13); box-shadow: 0 0 50px rgba(159, 234, 224, .16); font-size: 38px; transform: rotate(-7deg); }
.mail-spark { position: absolute; color: #f0d88e; font-style: normal; }
.spark-a { left: 20px; top: 26px; font-size: 13px; }
.spark-b { right: 20px; bottom: 30px; color: #a5eadd; font-size: 12px; }
.spark-c { right: 35px; top: 31px; color: #d9d1ff; font-size: 25px; }
.profile-preview, .security-callout { display: flex; align-items: center; gap: 12px; margin-top: 29px; padding: 14px; border: 1px solid rgba(235, 242, 255, .19); border-radius: 14px; background: rgba(245, 248, 255, .09); }
.preview-avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #4354b4; background: linear-gradient(145deg, #fff, #c9f0e5); font-weight: 800; }
.profile-preview > span:nth-child(2), .security-callout > span:nth-child(2) { display: grid; gap: 4px; }
.profile-preview b, .security-callout b { color: white; font-size: 11px; }
.profile-preview small, .security-callout small { color: rgba(239, 244, 255, .68); font-size: 10px; }
.preview-check { margin-left: auto; color: #a5eadd; }
.security-callout { margin-top: 31px; }
.callout-shield { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px; color: #baf4e5; background: rgba(165, 234, 221, .15); }
.consent-account { display: flex; align-items: center; gap: 11px; margin: 20px 0 23px; padding: 12px; border: 1px solid #e9ecf3; border-radius: 12px; background: #fbfcff; }
.consent-account > span:last-child { display: grid; min-width: 0; gap: 4px; }
.consent-account small { color: #8a92a4; font-size: 9px; }
.consent-account strong { overflow: hidden; color: #303851; font-size: 11px; text-overflow: ellipsis; }
.permission-heading { margin: 0 0 11px; color: #343c55; font-size: 11px; line-height: 1.5; }
.permission-list { display: grid; gap: 8px; }
.permission-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px; border: 1px solid #edf0f5; border-radius: 10px; background: #fff; }
.permission-check { display: grid; flex: 0 0 auto; width: 19px; height: 19px; place-items: center; border-radius: 7px; color: #3d8b76; background: #e7f7f1; font-size: 10px; }
.permission-copy { display: grid; gap: 4px; }
.permission-copy strong { color: #37405a; font-size: 10px; }
.permission-copy small { color: #858da0; font-size: 9px; line-height: 1.45; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.consent-actions .button { width: 100%; }
.recovery-steps { display: grid; gap: 12px; margin-top: 30px; }
.recovery-steps > div { display: flex; align-items: center; gap: 12px; }
.recovery-steps span { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid rgba(181, 198, 255, .35); border-radius: 9px; color: #c4d0ff; font-size: 10px; }
.recovery-steps p { margin: 0; color: rgba(239, 244, 255, .79); font-size: 11px; }

/* Central account pages */
.account-shell { width: min(1180px, 100%); min-height: min(790px, calc(100vh - 64px)); margin: 32px auto; overflow: hidden; border: 1px solid #e4e8f1; border-radius: 25px; background: #fff; box-shadow: var(--shadow); }
.account-topbar { display: flex; height: 76px; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid #edf0f5; }
.account-topbar .brand { color: #2a3459; font-size: 18px; }
.account-top-actions { display: flex; align-items: center; gap: 14px; }
.account-email { color: #68718a; font-size: 11px; }
.account-link { color: var(--blue); font-size: 11px; font-weight: 700; }
.account-layout { display: grid; grid-template-columns: 245px 1fr; min-height: 640px; }
.account-nav { padding: 27px 16px; border-right: 1px solid #edf0f5; background: #fcfcfe; }
.nav-label { margin: 0 0 12px 11px; color: #a0a6b6; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.account-nav a { display: flex; align-items: center; gap: 11px; margin: 3px 0; padding: 11px 12px; border-radius: 10px; color: #717a91; font-size: 11px; font-weight: 600; }
.account-nav a:hover { color: #3e51c5; background: #f2f3ff; }
.account-nav a[aria-current="page"] { color: #4155cf; background: #eff1ff; }
.nav-icon { display: grid; width: 20px; height: 20px; place-items: center; color: #8891a9; font-size: 14px; }
.account-content { min-width: 0; padding: 38px clamp(24px, 5vw, 68px); }
.content-heading { margin-bottom: 28px; }
.content-heading .eyebrow { margin-bottom: 9px; color: #7681b7; }
.content-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 29px; letter-spacing: -1.2px; }
.content-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.settings-card { margin-bottom: 15px; padding: 21px; border: 1px solid #e9ecf3; border-radius: 14px; background: #fff; }
.settings-card h2 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 15px; letter-spacing: -.3px; }
.settings-card > p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.settings-card .button { width: max-content; min-width: 145px; }
.button-small { min-height: 40px; padding: 0 13px; font-size: 11px; }
.button-danger { color: #a62e44; border: 1px solid #f1d8dd; background: #fff; box-shadow: none; }
.button-danger:hover { background: #fff7f8; }
.info-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid #eff1f5; font-size: 11px; }
.info-row:first-of-type { border-top: 0; }
.info-label { color: #7a8296; }
.info-value { color: #303851; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.account-notice { margin-bottom: 16px; }
.account-footer { display: flex; justify-content: space-between; padding: 16px 34px; border-top: 1px solid #edf0f5; color: #9aa1b1; font-size: 10px; }

@media (max-width: 850px) {
  .auth-page { padding: 18px; }
  .auth-frame { grid-template-columns: minmax(250px, .75fr) minmax(400px, 1.25fr); min-height: 650px; }
  .auth-story { padding: 30px 28px 24px; }
  .auth-main { padding: 27px 35px 23px; }
  .story-content h1 { font-size: 34px; }
  .account-shell { margin: 18px auto; min-height: calc(100vh - 36px); }
}
@media (max-width: 680px) {
  .auth-page { display: block; padding: 0; background: #fff; }
  .auth-frame, .auth-frame-compact { display: block; width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-story { display: none; }
  .auth-main { min-height: 100vh; padding: 22px 24px 20px; }
  .mobile-brand { display: inline-flex; margin-bottom: 28px; color: #293457; }
  .form-wrap, .form-wrap-wide { width: min(100%, 420px); margin: 0 auto; padding: 10px 0 32px; }
  .back-link { margin-bottom: 12px; }
  .auth-main > .back-link + .form-wrap { padding-top: 9px; }
  .panel-footer { padding: 14px 0 0; }
  .account-shell { margin: 0; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .account-topbar { height: 65px; padding: 0 18px; }
  .account-layout { display: block; min-height: 0; }
  .account-nav { display: flex; overflow-x: auto; gap: 3px; padding: 9px 12px; border-right: 0; border-bottom: 1px solid #edf0f5; }
  .nav-label { display: none; }
  .account-nav a { flex: 0 0 auto; gap: 7px; padding: 9px 10px; white-space: nowrap; }
  .nav-icon { width: auto; }
  .account-content { padding: 27px 20px 40px; }
  .account-footer { padding: 14px 18px; }
}
@media (max-width: 420px) {
  .auth-main { padding-right: 19px; padding-left: 19px; }
  .form-wrap h2 { font-size: 26px; }
  .field-pair, .settings-grid { grid-template-columns: 1fr; gap: 13px; }
  .account-topbar .brand { font-size: 16px; }
  .account-email { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
