:root {
  --auth-bg: #071018;
  --auth-panel: rgba(11, 20, 31, 0.8);
  --auth-panel-strong: rgba(10, 18, 28, 0.94);
  --auth-line: rgba(151, 180, 204, 0.15);
  --auth-line-strong: rgba(74, 210, 255, 0.42);
  --auth-text: #edf6ff;
  --auth-soft: #9eb4c9;
  --auth-muted: #7990a6;
  --auth-primary: #4f7cff;
  --auth-primary-2: #1fd1ff;
  --auth-success: #29d391;
  --auth-danger: #ff6b7d;
  --auth-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--auth-text);
  background:
    radial-gradient(circle at top left, rgba(79, 124, 255, 0.26), transparent 24%),
    radial-gradient(circle at 85% 15%, rgba(31, 209, 255, 0.16), transparent 20%),
    radial-gradient(circle at bottom right, rgba(41, 211, 145, 0.16), transparent 24%),
    linear-gradient(180deg, #08111a 0%, #050a11 100%);
}

button,
input,
select,
textarea,
a {
  font: inherit;
}

.auth-shell {
  width: min(1160px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: calc(100vh - 2.5rem);
  min-height: calc(100svh - 2.5rem);
  border: 1px solid var(--auth-line);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--auth-panel);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
}

.auth-aside {
  position: relative;
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
  padding: 1.7rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(155deg, rgba(79, 124, 255, 0.88), rgba(31, 209, 255, 0.68));
}

.auth-badge,
.auth-stat span,
.auth-form-copy,
.form-label,
.auth-inline,
.auth-links,
.auth-meta {
  color: rgba(255, 255, 255, 0.86);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-brand h1,
.auth-form-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  letter-spacing: -0.05em;
}

.auth-brand h1 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.93;
}

.auth-brand p,
.auth-feature p,
.auth-form-panel p,
.auth-card-note,
.form-helper,
.status-copy,
.forgot-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.auth-art {
  display: grid;
  gap: 1rem;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.auth-stat,
.auth-feature {
  padding: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 15, 26, 0.18);
  backdrop-filter: blur(12px);
}

.auth-stat span,
.auth-feature span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.75rem;
}

.auth-feature-list {
  display: grid;
  gap: 0.85rem;
}

.auth-form-panel {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--auth-panel-strong);
}

.auth-form-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-form-copy {
  color: var(--auth-soft);
}

.auth-form {
  display: grid;
  gap: 0.95rem;
}

.auth-grid {
  display: grid;
  gap: 0.9rem;
}

.auth-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-label {
  color: var(--auth-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-input,
.form-select {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--auth-text);
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--auth-line-strong);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.12);
}

.form-input::placeholder {
  color: var(--auth-muted);
}

.auth-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--auth-soft);
  font-size: 0.92rem;
}

.auth-link,
.text-button {
  color: #95d8ff;
  text-decoration: none;
  font-weight: 700;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-submit {
  min-height: 3.35rem;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(90deg, var(--auth-primary) 0%, var(--auth-primary-2) 100%);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(44, 92, 255, 0.28);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.auth-submit:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.auth-submit:disabled,
.mini-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-meta {
  color: var(--auth-muted);
  font-size: 0.92rem;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.status-card,
.forgot-panel {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.03);
}

.status-card[hidden],
.forgot-panel[hidden] {
  display: none;
}

.status-card[data-state="success"] {
  border-color: rgba(41, 211, 145, 0.32);
  background: rgba(41, 211, 145, 0.1);
}

.status-card[data-state="error"] {
  border-color: rgba(255, 107, 125, 0.34);
  background: rgba(255, 107, 125, 0.08);
}

.status-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.status-copy {
  color: var(--auth-soft);
}

.mini-button {
  min-height: 2.7rem;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--auth-line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--auth-text);
  font-weight: 700;
  cursor: pointer;
}

.forgot-panel {
  display: grid;
  gap: 0.9rem;
}

.status-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  color: #c6e9ff;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 980px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    min-height: 20rem;
  }
}

@media (max-width: 640px) {
  .auth-shell {
    width: min(100%, calc(100% - 0.75rem));
    padding: 0.4rem 0;
  }

  .auth-card {
    min-height: calc(100vh - 0.8rem);
    min-height: calc(100svh - 0.8rem);
    border-radius: 24px;
  }

  .auth-aside,
  .auth-form-panel {
    padding: 1.15rem;
  }

  .auth-grid.two-col,
  .auth-stat-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand h1 {
    font-size: 2.3rem;
  }
}

body.auth-body {
  position: relative;
  overflow-x: hidden;
}

body.auth-body::before,
body.auth-body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

body.auth-body::before {
  top: 5rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 170, 255, 0.22), transparent 70%);
}

body.auth-body::after {
  right: -4rem;
  bottom: 4rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 224, 167, 0.18), transparent 72%);
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 2rem));
  padding: 1.2rem 0;
}

.auth-card {
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
  border: 1px solid rgba(154, 191, 224, 0.14);
  border-radius: 38px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(7, 14, 24, 0.82);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(130, 190, 255, 0.22), rgba(255, 255, 255, 0.02), rgba(43, 210, 186, 0.16));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.auth-aside {
  padding: 1.8rem;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(160deg, rgba(33, 89, 236, 0.92) 0%, rgba(31, 191, 255, 0.78) 48%, rgba(10, 36, 78, 0.92) 100%);
}

.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-aside::before {
  top: 1.8rem;
  right: 2rem;
  width: 8rem;
  height: 8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.auth-aside::after {
  left: 2rem;
  bottom: 2rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
}

.auth-brand-top,
.auth-logo-lockup,
.auth-logo-copy,
.auth-trust-strip,
.auth-panel-top,
.auth-panel-metrics,
.auth-spotlight-grid {
  display: flex;
}

.auth-brand-top,
.auth-panel-top {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.auth-logo-lockup {
  align-items: center;
  gap: 0.9rem;
}

.auth-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    rgba(5, 13, 26, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.auth-logo-copy {
  flex-direction: column;
  gap: 0.15rem;
}

.auth-logo-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-logo-copy span,
.auth-chip,
.auth-panel-chip {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-logo-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.auth-chip,
.auth-panel-chip,
.auth-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 15, 28, 0.2);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
}

.auth-brand {
  position: relative;
  z-index: 1;
}

.auth-brand h1 {
  max-width: 12ch;
  margin-top: 1.1rem;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.92;
}

.auth-brand p {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.auth-trust-strip {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.auth-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(3, 11, 20, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-art {
  position: relative;
  z-index: 1;
  gap: 1.15rem;
}

.auth-spotlight,
.auth-stat,
.auth-feature,
.status-card,
.forgot-panel {
  backdrop-filter: blur(16px);
}

.auth-spotlight {
  display: grid;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(7, 14, 27, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-spotlight-copy {
  display: grid;
  gap: 0.45rem;
}

.auth-spotlight-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.auth-spotlight-copy strong {
  max-width: 24rem;
  font-size: 1.28rem;
  line-height: 1.25;
}

.auth-spotlight-grid {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.auth-spotlight-card {
  flex: 1 1 10rem;
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(7, 15, 27, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-spotlight-card span,
.auth-panel-metric span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.auth-spotlight-card strong,
.auth-panel-metric strong {
  font-size: 1rem;
}

.auth-spotlight-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
  font-size: 0.9rem;
}

.auth-stat-grid {
  gap: 1rem;
}

.auth-stat,
.auth-feature {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(7, 15, 28, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.auth-stat {
  padding: 1.05rem;
}

.auth-stat strong {
  margin-top: 0.4rem;
  font-size: 1.6rem;
  line-height: 1.1;
}

.auth-feature-list {
  gap: 0.95rem;
}

.auth-feature {
  padding: 1.05rem;
}

.auth-form-panel {
  position: relative;
  align-content: start;
  gap: 1.15rem;
  padding: 1.9rem;
  background:
    radial-gradient(circle at top right, rgba(82, 133, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(10, 18, 28, 0.97), rgba(8, 14, 24, 0.94));
}

.auth-form-panel::before {
  content: "";
  position: absolute;
  inset: 1.25rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.auth-back-link {
  background: rgba(255, 255, 255, 0.03);
  color: var(--auth-soft);
}

.auth-panel-chip {
  border-color: rgba(108, 193, 255, 0.2);
  background: rgba(79, 124, 255, 0.1);
  color: #b9e2ff;
}

.auth-form-panel h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.96;
}

.auth-form-copy {
  max-width: 32rem;
  font-size: 0.98rem;
  color: var(--auth-soft);
}

.auth-panel-metrics {
  gap: 0.8rem;
  flex-wrap: wrap;
}

.auth-panel-metric {
  flex: 1 1 9.5rem;
  min-width: 0;
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(135, 170, 206, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.025);
}

.auth-form {
  gap: 1rem;
}

.form-field {
  gap: 0.5rem;
}

.form-label {
  color: #c0d6ea;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-input,
.form-select {
  min-height: 3.55rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(130, 159, 191, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(6, 12, 20, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.form-input:hover,
.form-select:hover {
  border-color: rgba(105, 171, 255, 0.26);
}

.form-input:focus,
.form-select:focus {
  transform: translateY(-1px);
  border-color: rgba(104, 188, 255, 0.46);
  box-shadow:
    0 0 0 4px rgba(67, 130, 255, 0.1),
    0 12px 28px rgba(17, 40, 78, 0.28);
}

.auth-check {
  padding: 0.35rem 0;
}

.auth-submit {
  position: relative;
  overflow: hidden;
  min-height: 3.7rem;
  border-radius: 20px;
  background: linear-gradient(90deg, #3467ff 0%, #14befe 100%);
  box-shadow:
    0 18px 34px rgba(44, 92, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  letter-spacing: 0.02em;
}

.auth-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255, 255, 255, 0.16) 48%, transparent 78%);
  transform: translateX(-100%);
  transition: transform 240ms ease;
}

.auth-submit:hover::after {
  transform: translateX(100%);
}

.mini-button {
  min-height: 2.9rem;
  border-radius: 16px;
  border: 1px solid rgba(134, 170, 205, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.03);
}

.status-card,
.forgot-panel {
  border-radius: 22px;
  border: 1px solid rgba(134, 170, 205, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.025);
}

.status-card strong {
  font-size: 1rem;
}

.status-copy {
  color: #bfd4e7;
}

.auth-links {
  justify-content: space-between;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-link,
.text-button,
.status-link {
  transition: opacity 140ms ease, color 140ms ease;
}

.auth-link:hover,
.text-button:hover,
.status-link:hover,
.auth-back-link:hover {
  opacity: 0.9;
}

@media (max-width: 1120px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-aside {
    gap: 1.25rem;
  }

  .auth-brand h1 {
    max-width: 16ch;
  }
}

@media (max-width: 720px) {
  .auth-shell {
    width: min(100%, calc(100% - 0.9rem));
    padding: 0.45rem 0;
  }

  .auth-card {
    min-height: calc(100vh - 0.9rem);
    min-height: calc(100svh - 0.9rem);
    border-radius: 28px;
  }

  .auth-aside,
  .auth-form-panel {
    padding: 1.2rem;
  }

  .auth-form-panel::before {
    inset: 0.8rem;
    border-radius: 22px;
  }

  .auth-panel-metrics,
  .auth-spotlight-grid,
  .auth-stat-grid,
  .auth-feature-list {
    display: grid;
  }

  .auth-panel-metrics,
  .auth-spotlight-grid,
  .auth-stat-grid {
    grid-template-columns: 1fr;
  }

  .auth-brand h1 {
    font-size: 2.45rem;
  }

  .auth-panel-top,
  .auth-links {
    align-items: stretch;
  }
}
