:root {
  color-scheme: dark;
  --night-950: #030712;
  --night-900: #06101f;
  --night-850: #09172b;
  --night-800: #0d1f38;
  --panel: rgba(7, 18, 35, 0.86);
  --panel-soft: rgba(13, 30, 53, 0.72);
  --panel-input: rgba(13, 27, 47, 0.92);
  --ice-50: #f7fcff;
  --ice-100: #e8f7ff;
  --ice-200: #ccecff;
  --ice-300: #9ad8fa;
  --ice-400: #5db7ea;
  --ice-500: #328fc7;
  --gold-100: #fff2c9;
  --gold-200: #f8dc91;
  --gold-300: #dfb75e;
  --gold-500: #9d6a27;
  --text: #f5fbff;
  --muted: #aabed0;
  --muted-soft: #7f98ae;
  --line: rgba(162, 211, 242, 0.22);
  --line-strong: rgba(162, 211, 242, 0.42);
  --danger: #ff9c9c;
  --danger-bg: rgba(148, 39, 52, 0.18);
  --success: #9ee6c1;
  --success-bg: rgba(25, 114, 77, 0.18);
  --warning: #f8d790;
  --shadow: 0 30px 80px rgba(0, 3, 11, 0.62);
  --radius-lg: 18px;
  --radius-md: 10px;
  --font-sans: "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", "Segoe UI", sans-serif;
  --font-serif: "Noto Serif TC", "Microsoft JhengHei", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--night-950);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(90deg, rgba(3, 8, 19, 0.98) 0%, rgba(3, 10, 22, 0.9) 34%, rgba(3, 10, 22, 0.54) 67%, rgba(3, 8, 19, 0.78) 100%),
    linear-gradient(180deg, rgba(2, 7, 16, 0.18), rgba(2, 7, 16, 0.86)),
    url("hero-bg.png?v=12") 64% center / cover fixed no-repeat,
    var(--night-950);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body::before {
  inset: 0;
  opacity: 0.6;
  background:
    radial-gradient(circle at 72% 30%, rgba(94, 189, 242, 0.2), transparent 20rem),
    radial-gradient(circle at 28% 78%, rgba(41, 107, 178, 0.18), transparent 26rem),
    linear-gradient(120deg, transparent 47%, rgba(187, 230, 255, 0.05) 49%, transparent 51%);
}

body::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2, 7, 16, 0.92));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  border: 1px solid var(--gold-200);
  border-radius: 6px;
  padding: 10px 16px;
  color: #08111e;
  background: var(--gold-100);
  font-weight: 800;
  transition: transform 150ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(218, 185, 109, 0.18);
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.9), rgba(4, 12, 25, 0.62)),
    rgba(3, 9, 20, 0.7);
  box-shadow: 0 12px 32px rgba(0, 4, 13, 0.22);
  backdrop-filter: blur(18px) saturate(125%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 4px 7px 4px 1px;
}

.brand-emblem {
  position: relative;
  display: grid;
  width: 40px;
  height: 46px;
  place-items: center;
  color: var(--ice-50);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(136, 218, 255, 0.88);
}

.brand-emblem::before,
.brand-emblem::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.brand-emblem::before {
  inset: 3px 6px;
  border: 1px solid rgba(168, 225, 255, 0.7);
  border-right-color: rgba(238, 205, 128, 0.55);
  border-radius: 50% 50% 46% 54%;
  transform: rotate(-18deg);
  box-shadow: 0 0 18px rgba(87, 184, 237, 0.5), inset 0 0 12px rgba(87, 184, 237, 0.22);
}

.brand-emblem::after {
  right: -4px;
  bottom: 4px;
  width: 21px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-200), transparent);
  box-shadow: 0 -5px 0 -0.3px rgba(168, 225, 255, 0.65);
}

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

.brand-copy strong {
  color: var(--ice-50);
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 0 16px rgba(100, 192, 242, 0.34);
}

.brand-copy small {
  color: var(--ice-300);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2.1vw, 30px);
  color: var(--ice-200);
  font-size: 14px;
  font-weight: 700;
}

.header-nav a {
  position: relative;
  border-radius: 5px;
  padding: 10px 2px;
  white-space: nowrap;
  transition: color 160ms ease;
}

.header-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
  transition: transform 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--gold-100);
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  transform: scaleX(1);
}

.community-link {
  border: 1px solid rgba(127, 198, 238, 0.34);
  padding-right: 14px !important;
  padding-left: 14px !important;
  background: rgba(20, 56, 84, 0.34);
}

.account-layout {
  display: grid;
  width: min(1390px, 100%);
  min-height: calc(100svh - 120px);
  align-items: center;
  grid-template-columns: minmax(0, 0.92fr) minmax(490px, 570px);
  gap: clamp(36px, 6vw, 94px);
  margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) clamp(20px, 5vw, 72px);
}

.welcome-panel {
  max-width: 650px;
  padding: 24px 0 28px;
  text-shadow: 0 12px 36px rgba(0, 2, 10, 0.85);
}

.welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--gold-200);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.welcome-kicker span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-200));
  box-shadow: 0 0 8px rgba(246, 215, 141, 0.46);
}

.welcome-panel h1 {
  margin: 0;
  color: var(--ice-50);
  font-family: var(--font-serif);
  font-size: clamp(45px, 5.2vw, 78px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.welcome-panel h1 em {
  color: var(--gold-100);
  font-style: normal;
  text-shadow: 0 0 28px rgba(239, 205, 124, 0.32), 0 0 44px rgba(88, 174, 227, 0.24);
}

.welcome-lead {
  max-width: 590px;
  margin: 23px 0 26px;
  color: #d6e7f3;
  font-size: 16px;
  line-height: 1.85;
}

.trust-list {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.trust-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(204, 236, 255, 0.18);
  border-bottom: 1px solid rgba(204, 236, 255, 0.08);
  padding: 12px 4px;
  background: linear-gradient(90deg, rgba(17, 47, 76, 0.2), transparent);
}

.trust-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(141, 208, 246, 0.46);
  border-radius: 50%;
  color: var(--ice-300);
  font-size: 9px;
  font-weight: 900;
  box-shadow: inset 0 0 12px rgba(73, 161, 215, 0.14);
}

.trust-item div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.trust-item strong {
  color: var(--ice-100);
  font-size: 13px;
  white-space: nowrap;
}

.trust-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-note {
  display: flex;
  max-width: 610px;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  border-left: 2px solid rgba(235, 201, 120, 0.7);
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(7, 20, 40, 0.72), rgba(7, 20, 40, 0.08));
}

.beta-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px rgba(101, 221, 165, 0.85);
}

.beta-note strong {
  color: var(--gold-100);
  font-size: 13px;
}

.beta-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.account-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(154, 215, 249, 0.3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(18, 47, 77, 0.26), transparent 38%),
    linear-gradient(180deg, rgba(9, 23, 43, 0.96), rgba(4, 14, 29, 0.94));
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(237, 208, 137, 0.06),
    inset 0 1px 0 rgba(244, 252, 255, 0.08);
  backdrop-filter: blur(22px) saturate(125%);
}

.account-card::before,
.account-card::after {
  position: absolute;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.account-card::before {
  top: -1px;
  right: 22px;
  left: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
  box-shadow: 0 0 18px rgba(239, 205, 124, 0.38);
}

.account-card::after {
  right: -64px;
  bottom: -64px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(122, 199, 241, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(122, 199, 241, 0.025), 0 0 0 56px rgba(122, 199, 241, 0.018);
}

.card-glow {
  position: absolute;
  z-index: 0;
  top: -110px;
  right: -70px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75, 167, 222, 0.18), transparent 67%);
  pointer-events: none;
}

.account-heading,
.tabs,
.form-region,
.card-footer {
  position: relative;
  z-index: 2;
}

.account-heading {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: 12px;
  padding: 17px 24px 14px;
}

.heading-mark {
  width: 3px;
  height: 37px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-100), var(--gold-500));
  box-shadow: 0 0 12px rgba(239, 205, 124, 0.32);
}

.account-heading p {
  margin: 0 0 2px;
  color: var(--ice-300);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.account-heading h2 {
  margin: 0;
  color: var(--ice-50);
  font-family: var(--font-serif);
  font-size: 23px;
  letter-spacing: 0.05em;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  border: 1px solid rgba(122, 221, 174, 0.22);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--success);
  background: rgba(30, 112, 79, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.secure-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(101, 221, 165, 0.8);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(161, 213, 244, 0.12);
  border-bottom: 1px solid rgba(161, 213, 244, 0.16);
  background: rgba(1, 9, 20, 0.42);
}

.tab-button {
  position: relative;
  display: grid;
  min-height: 65px;
  gap: 2px;
  border: 0;
  padding: 12px 21px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.tab-button + .tab-button {
  border-left: 1px solid rgba(161, 213, 244, 0.12);
}

.tab-button::after {
  position: absolute;
  right: 20px;
  bottom: -1px;
  left: 20px;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
  box-shadow: 0 0 10px rgba(239, 205, 124, 0.42);
  transition: transform 160ms ease;
}

.tab-button span {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

.tab-button small {
  color: var(--muted-soft);
  font-size: 10px;
}

.tab-button:hover,
.tab-button:focus-visible {
  color: var(--ice-100);
  background: rgba(34, 82, 119, 0.14);
}

.tab-button.is-active {
  color: var(--gold-100);
  background: linear-gradient(180deg, rgba(31, 75, 111, 0.28), rgba(16, 39, 65, 0.16));
}

.tab-button.is-active::after {
  transform: scaleX(1);
}

.form-region {
  padding: 22px 24px 21px;
}

.tab-panel[hidden] {
  display: none;
}

.panel-intro {
  margin-bottom: 18px;
}

.panel-intro h3 {
  margin: 0 0 5px;
  color: var(--ice-50);
  font-size: 19px;
}

.panel-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 13px;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group > label {
  color: var(--ice-200);
  font-size: 12px;
  font-weight: 800;
}

.input-shell {
  position: relative;
  display: flex;
  min-height: 45px;
  align-items: center;
  border: 1px solid rgba(155, 204, 234, 0.28);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--panel-input);
  box-shadow: inset 0 1px 8px rgba(0, 4, 12, 0.32);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-shell:focus-within {
  border-color: rgba(104, 197, 247, 0.78);
  background: rgba(14, 33, 56, 0.98);
  box-shadow: 0 0 0 3px rgba(68, 161, 214, 0.12), 0 0 24px rgba(44, 137, 192, 0.1), inset 0 1px 8px rgba(0, 4, 12, 0.22);
}

.input-icon {
  display: grid;
  width: 42px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border-right: 1px solid rgba(161, 213, 244, 0.16);
  color: var(--ice-400);
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 43px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--ice-50);
  background: transparent;
  caret-color: var(--gold-200);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.input-shell input[type="password"] {
  letter-spacing: 0.12em;
}

.input-shell input::selection {
  color: var(--ice-50);
  background: rgba(67, 151, 204, 0.55);
}

.field-state {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-right: 14px;
  border: 1px solid var(--muted-soft);
  border-radius: 50%;
  opacity: 0.35;
}

.field-group.is-valid .field-state {
  border-color: var(--success);
  opacity: 1;
  background: var(--success);
  box-shadow: 0 0 9px rgba(101, 221, 165, 0.58);
}

.field-group.is-invalid .input-shell {
  border-color: rgba(255, 126, 137, 0.74);
  box-shadow: 0 0 0 3px rgba(189, 54, 68, 0.1);
}

.reveal-button {
  min-width: 53px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-left: 1px solid rgba(161, 213, 244, 0.16);
  padding: 0 10px;
  color: var(--ice-300);
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.reveal-button:hover,
.reveal-button:focus-visible,
.reveal-button[aria-pressed="true"] {
  color: var(--gold-100);
}

.field-meta {
  display: flex;
  min-height: 15px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.field-meta > small {
  color: var(--muted-soft);
  font-size: 10px;
  line-height: 1.45;
}

.field-meta-error {
  justify-content: flex-end;
  min-height: 0;
}

.field-error {
  color: var(--danger);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.field-error:empty,
.caps-notice:not(.is-visible) {
  display: none;
}

.caps-notice {
  justify-self: end;
  margin-top: -3px;
  color: var(--warning);
  font-size: 10px;
}

.strength {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -2px;
}

.strength-bars {
  display: grid;
  width: 52%;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.strength-bars i {
  height: 2px;
  border-radius: 3px;
  background: rgba(162, 211, 242, 0.14);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.strength small {
  color: var(--muted-soft);
  font-size: 9px;
  white-space: nowrap;
}

.strength strong {
  color: var(--muted);
}

.strength[data-level="1"] .strength-bars i:nth-child(-n+1),
.strength[data-level="2"] .strength-bars i:nth-child(-n+2),
.strength[data-level="3"] .strength-bars i:nth-child(-n+3),
.strength[data-level="4"] .strength-bars i:nth-child(-n+4) {
  background: var(--strength-color, var(--ice-400));
  box-shadow: 0 0 7px color-mix(in srgb, var(--strength-color, var(--ice-400)) 60%, transparent);
}

.strength[data-level="1"] { --strength-color: #ef8e93; }
.strength[data-level="2"] { --strength-color: #e9b968; }
.strength[data-level="3"] { --strength-color: #79c9e8; }
.strength[data-level="4"] { --strength-color: #7ce0b0; }

.strength[data-level] strong {
  color: var(--strength-color, var(--muted));
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.consent-row input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: var(--ice-400);
}

.consent-row.is-invalid {
  color: var(--danger);
}

.form-message {
  display: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.55;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  border-color: rgba(255, 130, 143, 0.26);
  color: #ffc5c9;
  background: var(--danger-bg);
}

.form-message.is-success {
  border-color: rgba(111, 225, 171, 0.24);
  color: #c5f5dd;
  background: var(--success-bg);
}

.submit-button {
  position: relative;
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 237, 184, 0.78);
  border-radius: var(--radius-md);
  padding: 0 50px;
  color: #102033;
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 64%) -180px 0 / 160px 100% no-repeat,
    linear-gradient(180deg, #fff3c7 0%, #edcf85 50%, #c99b47 100%);
  box-shadow: 0 12px 28px rgba(0, 3, 10, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background-position 380ms ease;
}

.submit-button:hover:not(:disabled),
.submit-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  background-position: 140% 0, 0 0;
  box-shadow: 0 15px 34px rgba(0, 3, 10, 0.44), 0 0 22px rgba(240, 207, 128, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: wait;
  filter: saturate(0.45) brightness(0.78);
}

.button-arrow {
  position: absolute;
  right: 18px;
  font-family: "Segoe UI", sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  margin-right: 9px;
  border: 2px solid rgba(13, 32, 50, 0.24);
  border-top-color: #102033;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

form.is-submitting .button-loader {
  display: inline-block;
}

form.is-submitting .button-arrow {
  display: none;
}

.card-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(161, 213, 244, 0.12);
  padding: 10px 24px;
  color: var(--muted-soft);
  background: rgba(1, 8, 18, 0.38);
  font-size: 9px;
}

.card-footer a {
  color: var(--ice-300);
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.card-footer a:hover,
.card-footer a:focus-visible {
  color: var(--gold-100);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  border-top: 1px solid rgba(218, 185, 109, 0.1);
  padding: 10px clamp(20px, 4vw, 64px);
  color: rgba(163, 185, 203, 0.65);
  background: rgba(2, 7, 16, 0.78);
  font-size: 10px;
  line-height: 1.5;
  backdrop-filter: blur(12px);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

:focus-visible {
  outline: 2px solid var(--gold-200);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  body {
    background-position: 70% center;
  }

  .account-layout {
    grid-template-columns: minmax(0, 0.75fr) minmax(475px, 545px);
    gap: 34px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .trust-list {
    grid-template-columns: 1fr;
    max-width: 320px;
    gap: 2px;
  }

  .trust-item {
    padding: 7px 3px;
  }

  .welcome-panel h1 {
    font-size: clamp(42px, 5.2vw, 60px);
  }
}

@media (max-width: 860px) {
  body {
    background:
      linear-gradient(180deg, rgba(3, 9, 20, 0.68), rgba(3, 9, 20, 0.96)),
      url("hero-bg.png?v=12") 64% top / auto 72vh no-repeat,
      var(--night-950);
  }

  .site-header {
    min-height: 68px;
    padding: 8px 18px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .header-nav a:not(.community-link) {
    display: none;
  }

  .account-layout {
    display: block;
    min-height: auto;
    padding: 34px 18px 42px;
  }

  .welcome-panel {
    max-width: 620px;
    margin: 0 auto 25px;
    padding: 20px 4px 0;
  }

  .welcome-panel h1 {
    font-size: clamp(40px, 10vw, 61px);
  }

  .welcome-lead {
    margin: 16px 0 18px;
  }

  .trust-list {
    max-width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .beta-note {
    margin-top: 17px;
  }

  .account-card {
    width: min(570px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
  }

  .brand-emblem {
    width: 34px;
  }

  .brand-copy small {
    display: none;
  }

  .community-link {
    padding-right: 10px !important;
    padding-left: 10px !important;
    font-size: 11px;
  }

  .account-layout {
    padding-right: 12px;
    padding-left: 12px;
  }

  .welcome-panel {
    padding-right: 8px;
    padding-left: 8px;
  }

  .welcome-kicker {
    margin-bottom: 13px;
    font-size: 11px;
  }

  .welcome-panel h1 {
    font-size: clamp(38px, 12vw, 51px);
  }

  .welcome-lead {
    font-size: 14px;
    line-height: 1.75;
  }

  .trust-list {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .trust-item {
    padding: 8px 3px;
  }

  .trust-item small {
    white-space: normal;
  }

  .beta-note {
    display: none;
  }

  .account-card {
    border-radius: 14px;
  }

  .account-heading {
    min-height: 75px;
    padding: 14px 17px 12px;
  }

  .account-heading h2 {
    font-size: 21px;
  }

  .tab-button {
    min-height: 62px;
    padding: 10px 14px;
  }

  .tab-button small {
    font-size: 9px;
  }

  .form-region {
    padding: 19px 17px 18px;
  }

  form {
    gap: 12px;
  }

  .field-meta {
    display: grid;
    gap: 2px;
  }

  .field-error {
    text-align: left;
  }

  .strength {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .strength-bars {
    width: 100%;
  }

  .submit-button {
    min-height: 52px;
  }

  .card-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 11px 17px;
  }

  .card-footer a {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
  }
}

@media (max-width: 370px) {
  .secure-badge {
    display: none;
  }

  .tab-button {
    padding-right: 10px;
    padding-left: 10px;
  }

  .tab-button small {
    display: none;
  }
}

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

@media (prefers-contrast: more) {
  .account-card,
  .input-shell,
  .tabs {
    border-color: rgba(214, 241, 255, 0.72);
  }

  .muted,
  .field-meta > small,
  .panel-intro p {
    color: var(--ice-200);
  }
}
