/* ============================================================
   NOXWAVE STUDIO — pages/auth.css
   Login + Register: auth-shell (бренд слева, форма справа)
   ============================================================ */

/* ---------- Общая обёртка ---------- */
.auth-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125, 155, 210, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 155, 210, .035) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
  opacity: .7;
}

.auth-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(0, 130, 255, .12);
  filter: blur(140px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Двухколоночная оболочка ---------- */
.auth-shell {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .5);
  overflow: hidden;
}

/* ---------- Левая колонка: бренд ---------- */
.auth-brand-side {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 44px 44px;
  background: linear-gradient(160deg, #070c1c, #08111f 55%, #050a14);
  position: relative;
  overflow: hidden;
}

.auth-brand-side::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0, 150, 255, .18);
  filter: blur(100px);
  right: -160px;
  top: -160px;
  pointer-events: none;
}

.auth-brand-logo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text);
}

.auth-brand-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.auth-brand-body {
  position: relative;
  margin-top: auto;
  margin-bottom: auto;
}

.auth-brand-body h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -1.8px;
  margin: 18px 0 20px;
}

.auth-brand-body h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #fff, #4bbdff 60%, #1684ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-brand-body p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 360px;
}

.auth-brand-points {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.auth-brand-points > div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.auth-brand-points span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan);
  width: 24px;
}

.auth-brand-points b {
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--text);
}

.auth-brand-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.auth-brand-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  transition: color var(--t) var(--ease);
}

.auth-brand-foot a i {
  font-style: normal;
  color: var(--cyan);
}

.auth-brand-foot a:hover {
  color: var(--cyan);
}

/* ---------- Правая колонка: форма ---------- */
.auth-card {
  padding: 52px 52px 44px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  min-width: 0;
}

.auth-card-head {
  margin-bottom: 32px;
}

.auth-card-head h1 {
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin: 14px 0 10px;
}

.auth-card-head p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form .form-field > span {
  font-size: 10px;
}

/* Ряд "Запомнить / Забыли пароль" */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: -4px;
}

.auth-row .form-check {
  margin: 0;
}

.auth-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.auth-link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* Кнопка submit */
.auth-submit {
  width: 100%;
  margin-top: 6px;
}

/* Разделитель "или" */
.auth-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 26px 0;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 14px;
  background: var(--surface);
  font-weight: 700;
}

/* Альтернативный вход */
.auth-alt {
  display: flex;
  gap: 10px;
}

.auth-alt .button {
  flex: 1;
}

/* Низ карточки */
.auth-card-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.auth-card-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-weight: 600;
  transition: color var(--t) var(--ease);
}

.auth-card-foot a i {
  font-style: normal;
}

.auth-card-foot a:hover {
  color: #fff;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .auth-shell {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .auth-brand-side {
    padding: 32px 32px 28px;
    gap: 26px;
  }

  .auth-brand-body {
    margin: 0;
  }

  .auth-brand-body h2 {
    font-size: 26px;
    margin: 12px 0 14px;
  }

  .auth-brand-points {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .auth-brand-points > div {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .auth-brand-foot {
    padding-top: 18px;
  }

  .auth-card {
    padding: 36px 32px 32px;
  }
}

@media (max-width: 850px) {
  .auth-page {
    padding: 20px 14px;
  }

  .auth-brand-side {
    padding: 26px 24px 22px;
  }

  .auth-brand-logo img {
    width: 28px;
    height: 28px;
  }

  .auth-brand-body h2 {
    font-size: 22px;
    letter-spacing: -1px;
  }

  .auth-brand-body p {
    font-size: 12px;
  }

  .auth-card {
    padding: 28px 24px 26px;
  }

  .auth-card-head h1 {
    font-size: 22px;
  }

  .auth-card-head {
    margin-bottom: 24px;
  }

  .auth-form {
    gap: 16px;
  }

  .auth-divider {
    margin: 20px 0;
  }

  .auth-card-foot {
    margin-top: 22px;
    padding-top: 18px;
  }
}

@media (max-width: 520px) {
  .auth-shell {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .auth-brand-side {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, #070c1c, #08111f 55%, #050a14);
  }

  .auth-card {
    border: 1px solid var(--line);
    margin-top: 12px;
  }

  .auth-alt {
    flex-direction: column;
  }

  .auth-brand-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}