:root {
  --bg: #080b12;
  --panel: rgba(15, 18, 27, 0.92);
  --panel-soft: rgba(21, 16, 34, 0.94);
  --line: rgba(115, 88, 178, 0.3);
  --text: #f6f3ff;
  --muted: #b9afda;
  --teal: #54ead9;
  --teal-strong: #67decf;
  --shadow: 0 28px 80px rgba(3, 4, 8, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(122, 92, 229, 0.18), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(84, 234, 217, 0.1), transparent 24%),
    linear-gradient(180deg, #120d1d 0%, #090c14 45%, #080b12 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black 32%, transparent 88%);
}

img {
  display: block;
  max-width: 100%;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1520px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(84, 234, 217, 0.24);
  box-shadow: 0 0 0 4px rgba(84, 234, 217, 0.05);
}

.brand span,
.eyebrow {
  display: block;
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}

.brand strong,
.auth-copy h1,
.auth-card h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
}

.brand strong {
  display: block;
  font-size: 2.2rem;
  line-height: 0.92;
}

.auth-header nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(18, 14, 29, 0.94), rgba(9, 11, 17, 0.96));
  box-shadow: var(--shadow);
}

.auth-copy h1 {
  font-size: clamp(3.3rem, 6.2vw, 5.8rem);
  line-height: 0.92;
}

.auth-copy p {
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.thumb-grid article,
.auth-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.thumb-grid article {
  min-height: 170px;
}

.thumb-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-panels {
  display: grid;
  gap: 16px;
  align-content: start;
}

.auth-alert {
  padding: 14px 16px;
  border: 1px solid rgba(255, 111, 141, 0.34);
  border-radius: 20px;
  background: rgba(255, 111, 141, 0.08);
  color: #ffd8e1;
  font-weight: 600;
}

.auth-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(15, 18, 27, 0.94), rgba(17, 13, 28, 0.96));
}

.auth-card.is-active {
  border-color: rgba(84, 234, 217, 0.3);
  box-shadow: 0 20px 50px rgba(84, 234, 217, 0.08);
}

.auth-card h2 {
  font-size: 2.3rem;
  line-height: 0.94;
}

.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.auth-card label {
  display: grid;
  gap: 8px;
}

.auth-card label span {
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 11, 18, 0.94);
  color: var(--text);
  font: inherit;
}

.auth-card button {
  min-height: 52px;
  margin-top: 4px;
  border: 1px solid rgba(84, 234, 217, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--teal-strong));
  color: #08100e;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .auth-shell {
    width: calc(100vw - 26px);
  }

  .auth-header {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-stage {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
}

@media (max-width: 680px) {
  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .auth-header nav a,
  .auth-card button {
    width: 100%;
  }
}
