:root {
  --auth-bg: #050814;
  --auth-panel: rgba(10, 16, 31, 0.92);
  --auth-panel-soft: rgba(15, 23, 42, 0.72);
  --auth-border: rgba(255, 255, 255, 0.09);
  --auth-text: #f8fafc;
  --auth-muted: #94a3b8;
  --auth-blue: #19b8ff;
  --auth-blue-deep: #376dff;
}

body.auth-v2-body {
  min-height: 100vh;
  margin: 0;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 12% 14%, rgba(25, 184, 255, 0.16), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(55, 109, 255, 0.14), transparent 30%),
    linear-gradient(150deg, #030611 0%, #070c19 46%, #0a1020 100%);
}

.auth-v2-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(440px, 1.05fr);
}

.auth-v2-brand,
.auth-v2-form-side {
  min-width: 0;
}

.auth-v2-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  border-right: 1px solid var(--auth-border);
  background:
    radial-gradient(circle at 18% 38%, rgba(25, 184, 255, 0.1), transparent 25%),
    linear-gradient(180deg, rgba(4, 9, 22, 0.7), rgba(4, 9, 22, 0.92)),
    radial-gradient(circle at 30% 25%, rgba(25, 184, 255, 0.14), transparent 40%);
}

.auth-v2-brand::before {
  content: '';
  position: absolute;
  width: 34rem;
  height: 34rem;
  left: -19rem;
  top: 24%;
  border-radius: 50%;
  border: 1px solid rgba(72, 185, 255, 0.08);
  box-shadow:
    0 0 0 5rem rgba(45, 141, 255, 0.012),
    0 0 0 10rem rgba(45, 141, 255, 0.009),
    0 0 100px rgba(25, 184, 255, 0.06);
  pointer-events: none;
}

.auth-v2-brand::after {
  content: 'SF';
  position: absolute;
  right: clamp(4.5rem, 8vw, 8rem);
  bottom: -0.18em;
  font-size: clamp(12rem, 22vw, 26rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.15em;
  color: rgba(34, 168, 255, 0.03);
  pointer-events: none;
}

.auth-v2-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
}

.auth-v2-logo-mark {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  border: 1px solid rgba(74, 181, 255, 0.34);
  background: linear-gradient(145deg, rgba(24, 190, 255, 0.24), rgba(53, 104, 255, 0.14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 38px rgba(20, 159, 255, 0.12);
  color: #82d8ff;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.045em;
  text-indent: -0.02em;
}

.auth-v2-logo-copy {
  min-height: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 0.02rem;
}

.auth-v2-logo-copy strong,
.auth-v2-logo-copy span {
  display: block;
  line-height: 1.15;
}

.auth-v2-logo-copy strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.auth-v2-logo-copy span {
  margin-top: 0.22rem;
  color: var(--auth-muted);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.auth-v2-hero {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin-block: auto;
  padding-block: 5rem;
}

.auth-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #79d5ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(25, 184, 255, 0.22);
}

.auth-v2-eyebrow::before {
  content: '';
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, #31c4ff, rgba(49, 196, 255, 0.15));
  box-shadow: 0 0 12px rgba(49, 196, 255, 0.35);
}

.auth-v2-hero h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.6rem, 5vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 850;
  text-shadow: 0 12px 55px rgba(0, 0, 0, 0.28);
}

.auth-v2-hero p {
  max-width: 35rem;
  margin: 0;
  color: #b6c2d3;
  font-size: 1.02rem;
  line-height: 1.75;
}

.auth-v2-points {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.auth-v2-point {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.9rem;
}

.auth-v2-point-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-deep));
  box-shadow: 0 0 18px rgba(25, 184, 255, 0.45);
}

.auth-v2-foot {
  position: relative;
  z-index: 1;
  color: #65748a;
  font-size: 0.78rem;
}

.auth-v2-form-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 4rem);
  overflow: hidden;
}

.auth-v2-form-side::before {
  content: '';
  position: absolute;
  width: min(48vw, 46rem);
  height: min(48vw, 46rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(41, 116, 255, 0.12) 0%, rgba(25, 184, 255, 0.035) 38%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.auth-v2-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: 1px solid rgba(117, 156, 255, 0.16);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(8, 13, 27, 0.94));
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.34),
    0 0 70px rgba(41, 111, 255, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px);
}

.auth-v2-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(77, 200, 255, 0.72), transparent);
  opacity: 0.7;
}

.auth-v2-card h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.auth-v2-card-lead {
  margin: 0.55rem 0 1.8rem;
  color: var(--auth-muted);
  line-height: 1.6;
}

.auth-v2-label {
  margin-bottom: 0.5rem;
  color: #d7e0ec;
  font-size: 0.84rem;
  font-weight: 700;
}

.auth-v2-input.form-control {
  min-height: 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 0.85rem;
  padding-inline: 1rem;
  background: rgba(5, 10, 22, 0.72) !important;
  color: #f8fafc !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-v2-input.form-control:focus {
  border-color: rgba(54, 179, 255, 0.65) !important;
  background: rgba(7, 14, 29, 0.9) !important;
  box-shadow: 0 0 0 0.22rem rgba(25, 184, 255, 0.11), 0 0 32px rgba(25, 184, 255, 0.06) !important;
}

.auth-v2-input::placeholder {
  color: #526176;
}

.auth-v2-primary.btn {
  min-height: 3.15rem;
  border: 0;
  border-radius: 0.85rem;
  background: linear-gradient(110deg, #10baf8, #356cff 70%, #4d7bff);
  background-size: 160% 100%;
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(37, 112, 255, 0.2), 0 0 30px rgba(25, 184, 255, 0.08);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease, background-position 260ms ease;
}

.auth-v2-primary.btn:hover {
  color: white;
  filter: brightness(1.08);
  transform: translateY(-1px);
  background-position: 100% 0;
  box-shadow: 0 18px 42px rgba(37, 112, 255, 0.28), 0 0 38px rgba(25, 184, 255, 0.12);
}

.auth-v2-secondary.btn {
  min-height: 3.15rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(141, 153, 255, 0.28);
  background: rgba(88, 101, 242, 0.1);
  color: #eef0ff;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.auth-v2-secondary.btn:hover {
  color: white;
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(141, 153, 255, 0.42);
  transform: translateY(-1px);
}

.auth-v2-discord-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-grid;
  place-items: center;
  margin-right: 0.45rem;
  border-radius: 0.35rem;
  background: #5865f2;
  color: white;
  font-size: 0.66rem;
  font-weight: 900;
}

.auth-v2-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.5rem 0;
  color: #5f6d81;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.auth-v2-divider::before,
.auth-v2-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
}

.auth-v2-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  font-size: 0.86rem;
}

.auth-v2-links a,
.auth-v2-inline-link {
  color: #7ad6ff;
  text-decoration: none;
}

.auth-v2-links a:hover,
.auth-v2-inline-link:hover {
  color: #b6ebff;
}

.auth-v2-discord-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(80, 214, 158, 0.24);
  border-radius: 0.9rem;
  background: rgba(30, 180, 110, 0.08);
}

.auth-v2-discord-connected strong,
.auth-v2-discord-connected span {
  display: block;
}

.auth-v2-discord-connected span {
  color: #89a098;
  font-size: 0.77rem;
  margin-top: 0.1rem;
}

.auth-v2-note {
  margin-top: 0.7rem;
  color: #6f7e92;
  font-size: 0.76rem;
  line-height: 1.5;
}

.auth-v2-alert.alert {
  border-radius: 0.9rem;
  border-width: 1px;
}

@media (max-width: 980px) {
  .auth-v2-shell {
    grid-template-columns: 1fr;
  }

  .auth-v2-brand {
    min-height: auto;
    padding: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--auth-border);
  }

  .auth-v2-brand::before,
  .auth-v2-form-side::before {
    display: none;
  }

  .auth-v2-hero {
    padding: 3rem 0 1rem;
  }

  .auth-v2-hero h1 {
    font-size: clamp(2.3rem, 10vw, 4rem);
  }

  .auth-v2-points,
  .auth-v2-foot {
    display: none;
  }

  .auth-v2-form-side {
    padding: 1rem;
  }
}

@media (max-width: 560px) {
  .auth-v2-brand {
    display: none;
  }

  .auth-v2-form-side {
    min-height: 100vh;
  }

  .auth-v2-card {
    border-radius: 1.2rem;
    padding: 1.35rem;
  }

  .auth-v2-links {
    flex-direction: column;
  }
}

@media (min-width: 981px) {
  .auth-v2-brand {
    justify-content: flex-start;
  }

  .auth-v2-logo {
    margin-top: clamp(5.5rem, 10vh, 8rem);
    margin-bottom: clamp(2.5rem, 4vh, 4rem);
  }

  .auth-v2-hero {
    margin-block: 0;
    padding-block: 0;
  }

  .auth-v2-foot {
    margin-top: auto;
  }
}
