body.auth-shell-page {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.12), transparent 30%),
    linear-gradient(180deg, #fbf7ff 0%, #f5f3ff 100%);
}

body.auth-shell-page nav,
body.auth-shell-page #mobile-menu,
body.auth-shell-page .sidenav-overlay,
body.auth-shell-page .drag-target,
body.auth-shell-page .site-footer {
  display: none;
}

body.auth-shell-page main.container.section {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-shell {
  width: min(1180px, 100%);
}

.auth-shell-login-solo {
  width: min(540px, 100%);
}

.auth-shell-admin-mini {
  width: min(400px, 100%);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 24px;
  align-items: stretch;
}

.auth-layout-login-solo {
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
}

.auth-brand-panel,
.auth-panel {
  height: 100%;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(124, 58, 237, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, #5b21b6 0%, #6d28d9 52%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 28px 60px rgba(109, 40, 217, 0.26);
}

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

.auth-brand-panel::before {
  top: -72px;
  right: -64px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-brand-panel::after {
  bottom: -120px;
  left: -40px;
  width: 260px;
  height: 260px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-brand-body {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-logo-wrap {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
}

.auth-logo-wrap img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.auth-eyebrow {
  margin: 0;
  color: rgba(224, 231, 255, 0.9);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.auth-display {
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 4.8vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.auth-display-copy {
  margin: 0;
  max-width: 33rem;
  color: rgba(224, 231, 255, 0.88);
  font-size: 16px;
  line-height: 1.7;
}

.auth-brand-points {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.auth-brand-point {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.auth-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.auth-brand-icon .icon {
  font-size: 20px;
}

.auth-brand-point-title {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.auth-brand-point-copy {
  display: block;
  margin-top: 4px;
  color: rgba(224, 231, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.auth-panel {
  width: 100%;
  max-width: 470px;
  justify-self: end;
  align-self: center;
}

.auth-layout-login-solo .auth-panel {
  max-width: none;
  justify-self: stretch;
}

.auth-layout-register .auth-panel {
  max-width: 560px;
}

.auth-panel-admin-mini {
  max-width: none;
  margin: 0 auto;
  justify-self: stretch;
}

.auth-panel-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.auth-panel-body-compact {
  gap: 16px;
}

.auth-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-badge {
  align-self: flex-start;
}

.auth-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(32px, 3.4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.auth-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.auth-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.auth-note {
  margin: 0;
}

.auth-actions,
.auth-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-btn,
.auth-social-btn {
  width: 100%;
}

.auth-social-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.auth-social-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-social-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dashed #cbd5e1;
}

.auth-social-divider > span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: #ffffff;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.auth-social-btn {
  justify-content: center;
}

.auth-social-btn .icon,
.auth-social-mark {
  flex: 0 0 auto;
}

.auth-social-btn .icon {
  font-size: 18px;
}

.auth-social-btn-google .icon {
  color: #ea4335;
}

.auth-social-btn-yandex .icon {
  color: #fc3f1d;
}

.auth-social-btn-telegram .icon {
  color: #2aa5e0;
}

.auth-social-mark {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.auth-social-mark-yandex {
  background: #fc3f1d;
  color: #ffffff;
}

.auth-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.6;
}

.auth-feedback .icon {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 18px;
}

.auth-feedback-success {
  border-color: rgba(5, 150, 105, 0.2);
  background: #ecfdf5;
  color: #065f46;
}

.auth-feedback-danger {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 1024px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-panel {
    max-width: none;
    justify-self: stretch;
    order: -1;
  }

  .auth-brand-points {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  body.auth-shell-page main.container.section {
    padding: 18px 12px;
  }

  .auth-brand-body,
  .auth-panel-body {
    gap: 20px;
  }

  .auth-logo-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

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

  .auth-display {
    font-size: 34px;
  }

  .auth-title {
    font-size: 30px;
  }

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