.account-page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 14% 28%, #24463f24, transparent 40%), var(--bg);
}
.account-header {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.account-header img {
  width: 170px;
}
.account-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  color: var(--muted);
}
.account-header nav a:hover {
  color: var(--mint);
}
.member-main {
  max-width: 1264px;
  margin: auto;
  padding: 72px 40px 100px;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
  min-height: 620px;
}
.auth-story h1,
.dashboard-head h1 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}
.auth-story > p {
  max-width: 400px;
  font-size: 16px;
}
.auth-card,
.membership-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 36px;
}
.auth-card h2,
.membership-card h2 {
  font-size: 32px;
  margin: 16px 0;
}
.auth-card p,
.membership-card p {
  font-size: 16px;
  line-height: 1.75;
}
.member-kicker {
  font: 12px var(--mono);
  color: var(--mint);
  letter-spacing: 0.1em;
}
.auth-card form {
  margin-top: 28px;
}
.auth-card form button {
  margin-top: 24px;
  width: 100%;
}
.auth-card input {
  font-size: 16px;
  min-height: 54px;
}
.auth-card label {
  font-size: 14px;
}
.member-small,
.auth-card p.member-small,
.membership-card p.member-small {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
  line-height: 1.75;
}
.member-small a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-assurance {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  font: 11px var(--mono);
  color: var(--soft);
  letter-spacing: 0.06em;
}
.auth-record {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #151d25 0 2px,
    #3b454c 3px,
    #10161c 4px
  );
  box-shadow: 0 20px 40px #0003;
  border: 1px solid #5d686f66;
  position: relative;
  margin-top: 38px;
}
.auth-record::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: conic-gradient(
    transparent 30deg,
    #f3f1e919 50deg,
    transparent 95deg 220deg,
    #f3f1e911 240deg,
    transparent 280deg
  );
}
.auth-record > div {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: #0b1015;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #4e5b624d;
}
.auth-record img {
  width: 118%;
  height: 118%;
  max-width: none;
  object-fit: contain;
}
.auth-secondary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--mint);
  min-height: 44px;
  padding: 8px 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.text-button:disabled {
  color: var(--muted);
  text-decoration: none;
}
.member-message:empty {
  display: none;
}
.member-message {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.member-message.error {
  border-color: #e28c9577;
  color: #ffb7be;
}
.member-message.success {
  border-color: #83e8ce55;
  color: var(--mint);
}
#login-code {
  font-family: var(--mono);
  font-size: 32px;
  letter-spacing: 0.25em;
  text-align: center;
}
.demo-code,
.preview-banner {
  background: #e4c18c15;
  border: 1px solid #e4c18c66;
  color: #e4c18c;
  padding: 14px;
  border-radius: 6px;
  font: 13px var(--mono);
}
.preview-banner {
  max-width: 1264px;
  margin: 24px auto 0;
  text-align: center;
}
.account-footer {
  max-width: 1264px;
  margin: auto;
  padding: 24px 40px 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  font: 11px var(--mono);
  color: var(--soft);
}
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-bottom: 42px;
}
.membership-badge {
  display: inline-flex;
  padding: 8px 14px;
  border: 1px solid #83e8ce66;
  border-radius: 30px;
  font-size: 13px;
  color: var(--mint);
  white-space: nowrap;
}
.membership-badge.expired {
  color: #ffb7be;
  border-color: #e28c9577;
}
.membership-badge.expiring_soon {
  color: #e4c18c;
  border-color: #e4c18c66;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
}
.renewal-card {
  background: linear-gradient(140deg, #172a24, var(--surface));
}
.renewal-card .btn {
  width: 100%;
  margin-top: 24px;
}
.membership-facts {
  margin: 30px 0 0;
}
.membership-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 15px;
}
.membership-facts dt {
  color: var(--muted);
}
.membership-facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.renewal-price {
  font: 500 52px var(--display);
  letter-spacing: -0.05em;
  margin: 24px 0 12px;
}
.membership-history {
  margin-top: 56px;
}
.membership-history h2 {
  font-size: 30px;
  margin-bottom: 28px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.history-row span {
  color: var(--muted);
}
#payment-report {
  margin-top: 24px;
}
#payment-report form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 20px;
}
#payment-report label {
  grid-column: 1/-1;
}
#payment-report input {
  min-width: 0;
}
.empty-history {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 900px) {
  .auth-layout {
    gap: 40px;
  }
  .auth-card,
  .membership-card {
    padding: 28px;
  }
  .member-main {
    padding: 48px 28px 72px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .auth-story h1 {
    font-size: 52px;
  }
  .account-header {
    padding: 24px 28px;
  }
  .auth-record {
    width: 180px;
  }
  .dashboard-head h1 {
    font-size: 52px;
  }
}
@media (max-width: 640px) {
  .account-header {
    padding: 20px;
    align-items: start;
  }
  .account-header img {
    width: 140px;
  }
  .account-header nav {
    gap: 14px;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: end;
  }
  .account-header nav > a:first-child {
    display: none;
  }
  .member-main {
    padding: 36px 20px 64px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
  }
  .auth-story h1,
  .dashboard-head h1 {
    font-size: 48px;
  }
  .auth-record,
  .auth-assurance {
    display: none;
  }
  .auth-story > .eyelabel {
    font-size: 10px;
  }
  .auth-card,
  .membership-card {
    padding: 24px;
  }
  .auth-card h2,
  .membership-card h2 {
    font-size: 29px;
  }
  .dashboard-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
  .membership-facts > div {
    display: block;
  }
  .membership-facts dd {
    text-align: left;
    margin-top: 8px;
  }
  .history-row {
    display: block;
  }
  .history-row span {
    display: block;
    margin-top: 6px;
  }
  #payment-report form {
    grid-template-columns: 1fr;
  }
  .account-footer {
    padding: 24px 20px;
    font-size: 10px;
  }
  .preview-banner {
    margin: 18px 20px 0;
    font-size: 11px;
  }
  .auth-secondary {
    gap: 8px;
  }
}
