:root {
  color-scheme: dark;
  --bg: #080908;
  --panel: rgba(17, 18, 15, .88);
  --line: rgba(213, 255, 63, .2);
  --text: #f2f0e9;
  --muted: #a09f98;
  --lime: #d5ff3f;
  --lime-soft: rgba(213, 255, 63, .08);
  --red: #ff8585;
  --radius: 3px;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(213,255,63,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213,255,63,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  width: 460px;
  height: 460px;
  top: -210px;
  left: calc(50% - 230px);
  border-radius: 50%;
  background: rgba(172, 255, 36, .09);
  filter: blur(100px);
  animation: glow-drift 12s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate(-80px, 10px) scale(.85); opacity: .55; }
  to { transform: translate(100px, 120px) scale(1.15); opacity: 1; }
}
@keyframes appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
main {
  width: min(100%, 560px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(213,255,63,.2);
  background: var(--panel);
  box-shadow: 0 24px 100px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(14px);
  animation: appear .55s ease both;
}
.brand {
  margin-bottom: 26px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { margin: 0 0 20px; font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: 23px; }
p { color: #c6c4bb; }
a { color: var(--lime); text-underline-offset: 4px; }
a:hover { color: white; }
button, input, textarea, select { font: inherit; }
input, textarea, select {
  display: block;
  width: 100%;
  margin: 7px 0 18px;
  padding: 13px 14px;
  border: 1px solid #393b32;
  border-radius: var(--radius);
  outline: none;
  background: #0b0c0a;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(213,255,63,.09);
}
label { color: #d8d8ce; font-size: 13px; }
button, .button, a.login, a.register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--lime);
  color: #11130b;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
button:hover, .button:hover, a.login:hover, a.register:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 28px rgba(213,255,63,.12);
  color: #11130b;
}
button:active, .button:active { transform: translateY(0); }
a.login { background: transparent; color: var(--lime); }
a.login:hover { background: var(--lime-soft); color: var(--lime); }
a.register { background: var(--lime); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.error, .rejected { color: var(--red); }
.note { margin-top: 20px; color: var(--muted); font-size: 13px; }
.price { color: var(--lime); font-size: 36px; font-weight: 850; letter-spacing: -.04em; }
hr { border: 0; border-top: 1px solid #303129; margin: 22px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(12,13,11,.55);
}
th, td {
  padding: 13px 11px;
  border-bottom: 1px solid #303129;
  text-align: left;
  vertical-align: top;
}
th { color: var(--lime); font-size: 12px; font-weight: 800; }
td { overflow-wrap: anywhere; }
.pending { color: #ffd166; }
.paid { color: var(--lime); }
.rejected { color: var(--red); }
.logout { margin-top: 20px; background: transparent; color: var(--text); border-color: #393b32; }
.logout:hover { color: var(--lime); background: var(--lime-soft); }
.admin-page {
  display: block;
  padding: clamp(18px, 4vw, 48px);
}
.admin-page header {
  width: min(100%, 1200px);
  margin: 0 auto 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.admin-page h1 { color: var(--lime); margin: 0; }
.admin-page .wrap {
  width: min(100%, 1200px);
  margin: auto;
  overflow-x: auto;
  border: 1px solid #303129;
  background: var(--panel);
  animation: appear .55s ease both;
}
.admin-page table { min-width: 850px; }
.admin-page form { margin: 0; }
.admin-page .actions { gap: 6px; }
.admin-page .approve { background: var(--lime); color: #11130b; }
.admin-page button:not(.approve) {
  background: #191a16;
  border-color: #393b32;
  color: var(--text);
}
.admin-page button:not(.approve):hover { border-color: var(--lime); }
@media (max-width: 520px) {
  body { padding: 14px; }
  main { padding: 23px 19px; }
  .actions > a { flex: 1 1 130px; }
  th, td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* VPN subscription button */
.subscription-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--lime-soft);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease,
              box-shadow .2s ease, transform .2s ease;
}
.subscription-link::after {
  content: "↗";
  font-size: 14px;
}
.subscription-link:hover {
  background: rgba(213, 255, 63, .16);
  border-color: var(--lime);
  box-shadow: 0 0 16px rgba(213, 255, 63, .09);
  transform: translateY(-1px);
}

/* Animated background enhancement */
body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(213,255,63,.045), transparent 55%),
    var(--bg);
}

body::before {
  animation: grid-drift 30s linear infinite;
}

body::after {
  box-shadow: 180px 320px 100px rgba(213,255,63,.035);
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Landing page actions */
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.actions > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 15px;
  margin: 0;
}

.actions > .login {
  margin-right: auto;
}

.actions > .register {
  margin-left: auto;
}

@media (max-width: 420px) {
  .actions {
    gap: 10px;
    margin-top: 28px;
  }

  .actions > a {
    flex: 1;
    padding: 10px 8px;
    text-align: center;
  }
}


/* Unified full-width pricing card */
.price-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  width: 100%;
  max-width: 100%;
  margin-top: 26px;
  padding: 16px 20px;
  border: 1px solid rgba(213,255,63,.2);
  border-radius: 5px;
  background: linear-gradient(110deg, rgba(213,255,63,.075), rgba(17,18,15,.6));
  opacity: 0;
  transform: translateY(12px);
  filter: blur(3px);
  animation: price-entrance 2.6s cubic-bezier(.12,.75,.25,1) .6s forwards;
}

.price-block .price-old {
  margin: 0;
  color: #ff7777;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: line-through;
  text-decoration-color: #ff4545;
  text-decoration-thickness: 2px;
}

.price-block .price {
  display: flex;
  align-items: baseline;
  justify-self: center;
  gap: 8px;
  margin: 0;
  color: var(--lime);
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(213,255,63,.16);
}

.price-block .price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(213,255,63,.3);
  border-radius: 4px;
  background: rgba(213,255,63,.1);
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

@keyframes price-entrance {
  0% {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(3px);
  }
  25% {
    opacity: 1;
    filter: blur(0);
    box-shadow: 0 0 26px rgba(213,255,63,.1);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    box-shadow: 0 0 0 rgba(213,255,63,0);
  }
}

@media (max-width: 520px) {
  .price-block {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .price-block .price {
    justify-self: end;
    font-size: 30px;
  }
  .price-block .price span {
    font-size: 11px;
  }
  .price-block .discount-badge {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-block {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Matrix rain layer */
#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .7;
}

/* Matrix terminal price panel */
.price-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid rgba(90, 255, 65, .45);
  border-radius: 4px;
  background: rgba(3, 12, 4, .88);
  box-shadow: inset 0 0 28px rgba(0, 255, 40, .06);
  opacity: 0;
  animation: matrix-panel-in 1.4s ease-out .35s forwards;
}

.price-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 255, 45, .07) 4px,
    transparent 5px
  );
  transform: translateY(-100%);
  animation: matrix-scan 5s linear infinite;
}

.price-block .price-old {
  color: #ff6565;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: line-through;
  text-decoration-color: #ff4545;
  text-decoration-thickness: 2px;
}

.price-block .price {
  display: flex;
  justify-self: center;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: #baff78;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(30px, 4vw, 39px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(65, 255, 45, .75),
               0 0 22px rgba(65, 255, 45, .3);
  animation: matrix-price-glitch 4.5s steps(1, end) 1.8s infinite;
}

.price-block .price span {
  color: #a7d69b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: none;
}

.discount-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(110, 255, 65, .5);
  border-radius: 3px;
  background: rgba(30, 120, 15, .2);
  color: #baff78;
  font: 800 11px/1 ui-monospace, monospace;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(60, 255, 40, .08);
}

@keyframes matrix-panel-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: brightness(.4);
    clip-path: inset(50% 0 50% 0);
  }
  45% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    filter: brightness(1.8);
  }
  65% { filter: brightness(.8); }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: brightness(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes matrix-scan {
  to { transform: translateY(100%); }
}

@keyframes matrix-price-glitch {
  0%, 92%, 100% { transform: translateX(0); opacity: 1; }
  93% { transform: translateX(-2px); opacity: .8; }
  95% { transform: translateX(2px); opacity: 1; }
  97% { transform: translateX(-1px); }
}

@media (max-width: 520px) {
  .price-block {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .price-block .price {
    justify-self: end;
    font-size: 28px;
  }

  .price-block .price span { font-size: 10px; }

  .price-block .discount-badge {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  #matrix-rain { display: none; }
  .price-block,
  .price-block .price,
  .price-block::before {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}

/* === MATRIX THEME OVERRIDES === */
:root {
  --lime: #65ff45;
  --lime-soft: rgba(65, 255, 45, .10);
  --line: rgba(65, 255, 45, .28);
}

body::before {
  background-image:
    linear-gradient(rgba(65,255,45,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,255,45,.035) 1px, transparent 1px);
}

body::after {
  background: rgba(45, 255, 30, .10);
}

main {
  border-color: rgba(65,255,45,.25);
}

.brand,
a,
a:hover {
  color: var(--lime);
}

button,
.actions > a,
input,
textarea,
select {
  accent-color: var(--lime);
}

button,
.actions > a {
  border-color: rgba(65,255,45,.35);
}

button:hover,
.actions > a:hover {
  border-color: var(--lime);
  box-shadow: 0 0 18px rgba(65,255,45,.14);
}

.actions > .register,
button.approve {
  background: var(--lime);
  color: #041004;
}

.actions > .register:hover,
button.approve:hover {
  background: #91ff7b;
  color: #041004;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(65,255,45,.10);
}

table th {
  color: var(--lime);
}

.status-paid,
.approved {
  color: var(--lime);
}

.price-block {
  border-color: rgba(65,255,45,.48);
  background: rgba(3, 12, 4, .88);
  box-shadow: inset 0 0 28px rgba(0,255,40,.06);
}

.price-block .price {
  color: #baff78;
  text-shadow: 0 0 8px rgba(65,255,45,.75),
               0 0 22px rgba(65,255,45,.3);
}

.discount-badge {
  border-color: rgba(65,255,45,.5);
  background: rgba(30,120,15,.2);
  color: #baff78;
}

.subscription-link {
  border-color: rgba(65,255,45,.4);
  background: rgba(65,255,45,.08);
  color: #8dff70;
}

.subscription-link:hover {
  border-color: var(--lime);
  background: rgba(65,255,45,.16);
  color: #c5ffb8;
  box-shadow: 0 0 16px rgba(65,255,45,.12);
}

hr {
  border-color: rgba(65,255,45,.18);
}

::selection {
  background: rgba(65,255,45,.3);
  color: #fff;
}

/* === MATRIX THEME OVERRIDES === */
:root {
  --lime: #65ff45;
  --lime-soft: rgba(65, 255, 45, .10);
  --line: rgba(65, 255, 45, .28);
}

body::before {
  background-image:
    linear-gradient(rgba(65,255,45,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,255,45,.035) 1px, transparent 1px);
}

body::after {
  background: rgba(45, 255, 30, .10);
}

main {
  border-color: rgba(65,255,45,.25);
}

.brand,
a,
a:hover {
  color: var(--lime);
}

button,
.actions > a,
input,
textarea,
select {
  accent-color: var(--lime);
}

button,
.actions > a {
  border-color: rgba(65,255,45,.35);
}

button:hover,
.actions > a:hover {
  border-color: var(--lime);
  box-shadow: 0 0 18px rgba(65,255,45,.14);
}

.actions > .register,
button.approve {
  background: var(--lime);
  color: #041004;
}

.actions > .register:hover,
button.approve:hover {
  background: #91ff7b;
  color: #041004;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(65,255,45,.10);
}

table th {
  color: var(--lime);
}

.status-paid,
.approved {
  color: var(--lime);
}

.price-block {
  border-color: rgba(65,255,45,.48);
  background: rgba(3, 12, 4, .88);
  box-shadow: inset 0 0 28px rgba(0,255,40,.06);
}

.price-block .price {
  color: #baff78;
  text-shadow: 0 0 8px rgba(65,255,45,.75),
               0 0 22px rgba(65,255,45,.3);
}

.discount-badge {
  border-color: rgba(65,255,45,.5);
  background: rgba(30,120,15,.2);
  color: #baff78;
}

.subscription-link {
  border-color: rgba(65,255,45,.4);
  background: rgba(65,255,45,.08);
  color: #8dff70;
}

.subscription-link:hover {
  border-color: var(--lime);
  background: rgba(65,255,45,.16);
  color: #c5ffb8;
  box-shadow: 0 0 16px rgba(65,255,45,.12);
}

hr {
  border-color: rgba(65,255,45,.18);
}

::selection {
  background: rgba(65,255,45,.3);
  color: #fff;
}


/* === UNIFIED MATRIX BACKGROUND === */
:root {
  --lime: #65ff45;
  --lime-soft: rgba(65, 255, 45, .10);
  --line: rgba(65, 255, 45, .28);
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(65,255,45,.045), transparent 55%),
    var(--bg);
}

body::before {
  background-image:
    linear-gradient(rgba(65,255,45,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65,255,45,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: grid-drift 30s linear infinite;
}

body::after {
  background: rgba(45,255,30,.10);
  box-shadow: 180px 320px 100px rgba(65,255,45,.035);
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 48px 48px, 48px 48px; }
}

#matrix-rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .7;
}

body > main {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  #matrix-rain { display: none; }
}

/* Matrix canvas: ensure visible behind content on every page */
body {
  position: relative;
  isolation: isolate;
}

#matrix-rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
  opacity: .7;
}

body::before {
  z-index: -2;
}

body::after {
  z-index: -1;
  pointer-events: none;
}

body > main,
body > .admin-layout,
body > div {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #matrix-rain {
    display: none;
  }
}

/* Единый размер кнопок в личном кабинете */
.account-actions > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.account-actions > .subscription-link {
  background: transparent;
  color: var(--lime);
  border: 1px solid var(--line);
}

.account-actions > .subscription-link:hover {
  background: var(--lime-soft);
  border-color: var(--lime);
  color: var(--lime);
}



/* Auth pages: unified buttons and alignment */
.login-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.login-actions p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.login-actions p a.register-link,
.login-actions > a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.login-actions p a.register-link {
  background: var(--lime);
  color: #11130b;
}

.login-actions p a.register-link:hover {
  background: #e2ff78;
  color: #11130b;
}

.login-actions > a.button {
  background: transparent;
  color: var(--lime);
}

.login-actions > a.button:hover {
  background: var(--lime-soft);
  color: var(--lime);
  border-color: var(--lime);
}

@media (max-width: 480px) {
  .login-actions p a.register-link,
  .login-actions > a.button {
    width: min(190px, 100%);
  }
}

/* Compact, aligned login actions */
.login-actions {
  margin-top: 16px;
  gap: 8px;
}

.login-actions p {
  gap: 6px;
}

.login-actions p a.register-link,
.login-actions > a.button {
  width: 190px;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 14px;
  border-radius: 4px;
}

.login-actions p a.register-link {
  background: transparent;
  color: var(--lime);
  border-color: var(--line);
}

.login-actions p a.register-link:hover {
  background: var(--lime-soft);
  border-color: var(--lime);
}

.login-actions > a.button {
  justify-content: center;
}


/* WAN2BAN auth UI */
.auth-card {
  width: min(100%, 460px);
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(213,255,63,.24);
  border-radius: 12px;
  background: rgba(12,14,11,.94);
  box-shadow: 0 24px 100px rgba(0,0,0,.48), 0 0 50px rgba(172,255,36,.035);
  backdrop-filter: blur(18px);
}

.auth-card .brand { margin-bottom: 22px; }
.auth-card h1 { margin-bottom: 8px; font-size: clamp(28px, 5vw, 36px); }
.auth-subtitle { margin: 0 0 24px; color: var(--muted); font-size: 14px; }

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid #30352a;
  border-radius: 8px;
  background: #090a08;
}

.auth-card .auth-tab {
  position: relative;
  z-index: 1;
  min-height: 42px;
  padding: 10px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: none;
  transform: none;
}

.auth-card .auth-tab.active { color: #10130a; }
.auth-tab-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 6px;
  background: var(--lime);
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.auth-tab-indicator.right { transform: translateX(100%); }

.auth-error {
  margin: -8px 0 18px;
  padding: 11px 13px;
  border: 1px solid rgba(255,133,133,.28);
  border-radius: 7px;
  background: rgba(255,133,133,.06);
  font-size: 13px;
}

.auth-card form { margin: 0; }
.auth-fields label { display: block; margin: 0 0 7px; }
.auth-fields input {
  margin: 0 0 17px;
  min-height: 48px;
  border-radius: 7px;
  background: #10120e;
}
.auth-fields input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(213,255,63,.08);
}

.auth-confirm {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  transition: grid-template-rows .32s ease, opacity .24s ease, transform .32s ease;
}
.auth-confirm.shown {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}
.auth-confirm > * { min-height: 0; }
.auth-confirm label { overflow: hidden; }
.auth-confirm input { width: 100%; }

.auth-card .auth-submit {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 2px;
  border: 1px solid var(--lime);
  border-radius: 7px;
  background: var(--lime);
  color: #10130a;
  font-weight: 850;
  box-shadow: 0 6px 24px rgba(213,255,63,.08);
}
.auth-card .auth-submit:hover {
  background: #e3ff83;
  box-shadow: 0 8px 30px rgba(213,255,63,.16);
  transform: translateY(-1px);
}
.auth-submit-arrow { transition: transform .2s ease; }
.auth-submit:hover .auth-submit-arrow { transform: translate(2px,-2px); }

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-card .auth-switch button {
  min-height: 0;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--lime);
  font-size: inherit;
  font-weight: 800;
  cursor: pointer;
}
.auth-card .auth-switch button:hover {
  color: white;
  box-shadow: none;
  transform: none;
}
.auth-home {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.auth-home:hover { color: var(--lime); }

@media (max-width: 480px) {
  .auth-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-card *, .auth-card *::before, .auth-card *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
