.auth-page {
  min-height: 100vh;
  color: #f3f6ef;
  background:
    radial-gradient(circle at 78% 12%, rgba(215,255,56,.12), transparent 34rem),
    radial-gradient(circle at 15% 78%, rgba(94,144,10,.09), transparent 30rem),
    #080a08;
}

.auth-main {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 108px 0 28px;
  overflow-x: clip;
}

.auth-main::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.auth-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr);
  gap: 86px;
  align-items: start;
}

.auth-copy { max-width: 520px; }

.auth-copy h1 {
  margin: 22px 0 22px;
  max-width: 760px;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.auth-copy h1 em {
  color: #d7ff38;
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.auth-copy > p {
  max-width: 500px;
  color: #9da697;
  font-size: 17px;
  line-height: 1.72;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.auth-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.auth-point > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #080a08;
  background: #d7ff38;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.auth-point strong { display: block; margin: 2px 0 4px; font-size: 14px; }
.auth-point p { margin: 0; color: #7f897a; font-size: 13px; line-height: 1.55; }

.auth-card {
  position: relative;
  padding: clamp(30px, 4vw, 50px);
  color: #f2f5ed;
  background:
    linear-gradient(145deg, rgba(22,28,19,.98), rgba(10,13,10,.99));
  border: 1px solid rgba(215,255,56,.22);
  border-radius: 26px;
  box-shadow:
    0 34px 90px rgba(0,0,0,.52),
    inset 0 1px 0 rgba(255,255,255,.035);
}

.auth-card::before {
  position: absolute;
  top: 0;
  right: 42px;
  left: 42px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, #d7ff38, transparent);
}

.auth-card-head { margin-bottom: 28px; }
.auth-card-head .auth-kicker,
.auth-success .auth-kicker {
  color: #d7ff38;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-card-head h2,
.auth-success h2 {
  margin: 8px 0 8px;
  color: #f5f8f1;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.auth-card-head p,
.auth-success p { margin: 0; color: #9da697; font-size: 14px; line-height: 1.65; }

.auth-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 22px;
  padding: 15px 17px;
  color: #ffd7cd;
  background: rgba(95,35,27,.32);
  border: 1px solid rgba(255,147,122,.3);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-form { display: grid; gap: 18px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: start; }
.auth-field { display: grid; gap: 8px; }

.auth-field > span {
  color: #d7ddd1;
  font-size: 12px;
  font-weight: 800;
}

.auth-field b { color: #789500; }
.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 51px;
  padding: 0 15px;
  color: #f4f7ef;
  background: #090c09;
  border: 1px solid #30382d;
  border-radius: 11px;
  outline: 0;
  font: inherit;
  font-size: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-field input::placeholder { color: #697365; }
.auth-field select option { color: #f4f7ef; background: #101410; }

.auth-field input:focus,
.auth-field select:focus {
  border-color: #b8dc28;
  box-shadow: 0 0 0 4px rgba(180,220,27,.12);
}

.auth-field small { color: #7f897a; font-size: 11px; line-height: 1.45; }

.auth-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  color: #a9b1a3;
  font-size: 12px;
  line-height: 1.55;
}

.auth-check input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #91b400; }

.auth-submit {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  color: #080a08;
  background: #d7ff38;
  border: 1px solid #c8ef2d;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  transition: transform .2s ease, background-color .2s ease;
}

.auth-submit:hover { background: #e4ff77; transform: translateY(-2px); }

.auth-submit:disabled,
.auth-submit.is-loading {
  cursor: wait;
  opacity: .9;
  transform: none;
}

.auth-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(8,10,8,.28);
  border-top-color: #080a08;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}

.auth-submit.is-loading .auth-submit-spinner { display: inline-block; }
.auth-submit.is-loading .auth-submit-arrow { display: none; }

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: center;
  margin: 20px 0;
  color: #687164;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after { height: 1px; content: ""; background: #2d352a; }

.auth-provider {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  min-height: 54px;
  gap: 13px;
  align-items: center;
  padding: 7px 16px 7px 8px;
  color: #edf2e8;
  background: #0a0d0a;
  border: 1px solid #394334;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.auth-provider:hover {
  color: #fff;
  background: #111610;
  border-color: #8fac19;
  transform: translateY(-2px);
}

.auth-provider-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #080a08;
  background: #d7ff38;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.04em;
}

.auth-provider-arrow { color: #d7ff38; }
.auth-security-note { margin: 15px 3px 0; color: #7f897a; font-size: 11px; line-height: 1.55; text-align: center; }
.auth-code-input { font-size: 23px !important; font-weight: 900 !important; letter-spacing: .25em; text-align: center; }

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

.auth-submit-link { width: 100%; margin-top: 24px; }
.auth-browser-note { margin-top: 14px !important; font-size: 12px !important; }
.auth-browser-note a { color: #d7ff38; font-weight: 800; }

.auth-switch {
  margin: 22px 0 0;
  color: #899283;
  text-align: center;
  font-size: 13px;
}

.auth-switch a { color: #d7ff38; font-weight: 850; }
.auth-nav-actions { display: flex; justify-self: end; align-items: center; gap: 13px; }
.auth-nav-link { color: #cbd1c6; font-size: 13px; font-weight: 750; }

.auth-success { text-align: center; padding: 22px 8px 8px; }
.auth-success-mark {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 23px;
  place-items: center;
  color: #111510;
  background: #d7ff38;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(215,255,56,.18);
  font-size: 27px;
  font-weight: 900;
}

.auth-receipt {
  margin: 24px 0;
  padding: 17px;
  background: #0a0d0a;
  border: 1px solid #2d352a;
  border-radius: 13px;
}

.auth-receipt span { display: block; color: #7f897a; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.auth-receipt strong { display: block; margin-top: 6px; word-break: break-word; }

.account-layout { grid-template-columns: minmax(0, .7fr) minmax(560px, 1.3fr); }
.account-card { padding: clamp(34px, 4vw, 54px); }
.account-banner { margin-bottom: 22px; padding: 15px 17px; color: #e9ff98; background: rgba(87,108,13,.24); border: 1px solid rgba(202,232,120,.32); border-radius: 12px; font-size: 13px; }
.account-identity { display: flex; gap: 18px; align-items: center; margin-bottom: 30px; }
.account-avatar { display: grid; width: 62px; height: 62px; place-items: center; color: #111510; background: #d7ff38; border-radius: 18px; font-size: 24px; font-weight: 950; text-transform: uppercase; }
.account-identity h2 { margin: 0 0 5px; font-size: 31px; letter-spacing: -.035em; }
.account-identity p { margin: 0; color: #899283; font-size: 13px; }
.account-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-detail { padding: 17px; background: #0a0d0a; border: 1px solid #2d352a; border-radius: 13px; }
.account-detail span { display: block; margin-bottom: 6px; color: #7f897a; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.account-detail strong { font-size: 14px; word-break: break-word; }
.account-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 27px; padding-top: 24px; border-top: 1px solid #2d352a; }
.signout-button { color: #a9b1a3; background: transparent; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }

/* Keep the complete membership action visible on ordinary desktop and laptop
   displays. Narrow layouts remain naturally scrollable below. */
@media (min-width: 981px) and (max-height: 980px) {
  .auth-main { padding: 102px 0 18px; }
  .auth-layout { gap: 64px; }
  .auth-copy h1 {
    max-width: 650px;
    margin: 18px 0;
    font-size: clamp(42px, 4.6vw, 64px);
  }
  .auth-copy > p { font-size: 15px; line-height: 1.58; }
  .auth-points { gap: 0; margin-top: 22px; }
  .auth-point { padding: 11px 0; }
  .auth-card { padding: 30px 36px; border-radius: 22px; }
  .auth-card-head { margin-bottom: 18px; }
  .auth-card-head h2,
  .auth-success h2 { font-size: 34px; }
  .auth-form { gap: 12px; }
  .auth-row { gap: 12px; }
  .auth-field { gap: 6px; }
  .auth-field input,
  .auth-field select { min-height: 45px; }
  .auth-field small { line-height: 1.35; }
  .auth-check { line-height: 1.42; }
  .auth-submit { min-height: 48px; }
  .auth-divider { margin: 12px 0; }
  .auth-provider { min-height: 47px; }
  .auth-provider-mark { width: 34px; height: 34px; }
  .auth-security-note { margin-top: 10px; }
  .auth-switch { margin-top: 15px; }
}

@media (min-width: 981px) and (max-height: 760px) {
  .auth-main { padding: 94px 0 10px; }
  .auth-copy h1 {
    margin: 13px 0;
    font-size: clamp(39px, 4vw, 54px);
  }
  .auth-copy > p { font-size: 14px; line-height: 1.45; }
  .auth-points { margin-top: 14px; }
  .auth-point { padding: 7px 0; }
  .auth-card { padding: 22px 30px; }
  .auth-card-head { margin-bottom: 12px; }
  .auth-card-head h2,
  .auth-success h2 { margin: 4px 0; font-size: 30px; }
  .auth-card-head p,
  .auth-success p { line-height: 1.4; }
  .auth-form { gap: 8px; }
  .auth-field { gap: 4px; }
  .auth-field input,
  .auth-field select { min-height: 40px; }
  .auth-check { font-size: 11px; line-height: 1.35; }
  .auth-submit { min-height: 44px; }
  .auth-divider { margin: 7px 0; }
  .auth-provider { min-height: 43px; }
  .auth-provider-mark { width: 31px; height: 31px; }
  .auth-security-note { margin-top: 7px; line-height: 1.35; }
  .auth-switch { margin-top: 10px; }
}

@media (max-width: 980px) {
  .auth-layout, .account-layout { grid-template-columns: 1fr; gap: 45px; }
  .auth-copy { max-width: 680px; }
  .auth-main { padding-top: 108px; }
}

@media (max-width: 700px) {
  .auth-main { padding: 92px 0 45px; }
  .auth-copy h1 { font-size: 45px; }
  .auth-points { display: none; }
  .auth-card { padding: 27px 20px; border-radius: 20px; }
  .auth-row, .account-details { grid-template-columns: 1fr; }
  .auth-nav-actions .nav-cta { display: inline-flex; }
  .auth-nav-link { display: none; }
  .account-actions { align-items: stretch; flex-direction: column; }
}
