.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--main-color) 35%, transparent), transparent 45%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--main-color) 22%, transparent), transparent 42%),
    linear-gradient(140deg, #111216, #17191e 40%, #1f2228);
}

.auth-container {
  max-width: 1100px;
}

.auth-container .row {
  --bs-gutter-x: 0;
}

.auth-card {
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.auth-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.auth-logo {
  height: 34px;
  width: auto;
}

.auth-form .form-control {
  border-radius: 0.9rem;
  border-color: #e2e8f0;
}

.auth-form .form-control:focus {
  border-color: var(--main-color);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--main-color) 25%, transparent);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #6c757d;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, var(--main-color) 30%, #e2e8f0);
}

.auth-provider {
  border-radius: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-provider:hover,
.auth-provider:focus {
  text-decoration: none;
}

.auth-provider--twitch {
  background: #6441a5;
  color: #fff;
}

.auth-provider--twitch:hover,
.auth-provider--twitch:focus {
  background: #563994;
  color: #fff;
}

.auth-provider--google {
  background: #fff;
  color: #202124;
  border: 1px solid #e5e7eb;
}

.auth-provider--google:hover,
.auth-provider--google:focus {
  background: #f3f4f6;
  color: #202124;
  border-color: #d1d5db;
}

.auth-provider--discord {
  background: #5865f2;
  color: #fff;
}

.auth-provider--discord:hover,
.auth-provider--discord:focus {
  background: #4b57d6;
  color: #fff;
}

.auth-aside {
  border-radius: 1.5rem;
  background: linear-gradient(140deg, #1f2228 0%, #2a2f36 55%, #343a43 100%);
  position: relative;
  overflow: hidden;
  padding: 3rem;
  color: #f8fafc;
  box-shadow: 0 30px 60px rgba(10, 15, 30, 0.35);
}

.auth-aside::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, color-mix(in srgb, var(--main-color) 70%, transparent), transparent 70%);
  opacity: 0.8;
}

.auth-aside::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, color-mix(in srgb, var(--main-color) 55%, transparent), transparent 70%);
  opacity: 0.6;
}

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

.auth-aside-logo {
  height: 64px;
  width: auto;
  margin-bottom: 1.5rem;
}

.auth-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.65rem;
}

.auth-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--main-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--main-color) 25%, transparent);
}

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

.auth-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.auth-stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.auth-form .error {
  display: none;
  font-size: 0.85rem;
  color: #dc3545;
}

.auth-form .error.active {
  display: block;
}

.auth-form .input-border-success {
  border-color: #16a34a;
  box-shadow: 0 0 0 0.2rem rgba(22, 163, 74, 0.15);
}

.auth-form .input-border-danger {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

@media (max-width: 991.98px) {
  .auth-shell {
    align-items: stretch;
  }

  .auth-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .auth-container .row {
    --bs-gutter-y: 0;
  }

  .auth-container .row > [class*="col-"] {
    padding-top: 0;
    padding-bottom: 0;
  }

  .auth-card {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .auth-aside {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .auth-aside {
    padding: 2.5rem;
  }
}

@media (min-width: 992px) {
  .auth-container .row {
    --bs-gutter-x: 0;
  }

  .auth-card {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .auth-aside {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}

@media (max-width: 575.98px) {
  .auth-shell {
    padding: 2rem 0;
  }

  .auth-logo-wrap {
    width: 48px;
    height: 48px;
  }

  .auth-card .card-body,
  .auth-aside {
    padding: 2rem;
  }

  .auth-stats {
    grid-template-columns: 1fr;
  }
}
