/* ==============
   Страница входа
   ============== */

:root {
  --lk-card-bg: rgba(10, 9, 23, 0.96);
  --lk-card-border: rgba(120, 107, 240, 0.55);
  --lk-card-soft: rgba(120, 107, 240, 0.22);
  --lk-shadow: 0 18px 45px rgba(0, 0, 0, 0.75);

  --lk-accent: #8b5cf6;
  --lk-accent-2: #00ffd9;
  --lk-text-main: #eaeafe;
  --lk-text-muted: #a3a7c2;
  --lk-ok: #22c55e;
  --lk-warn: #fb7185;
}

/* Общий контейнер */
.auth-page {
  padding: 36px 0 60px;
}

.auth-page__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: stretch;
}

/* Основная карточка входа */
.auth-card {
  position: relative;
  border-radius: 20px;
  padding: 22px 22px 24px;
  background:
    radial-gradient(900px 650px at -10% -10%, rgba(139, 92, 246, 0.38), transparent 70%),
    radial-gradient(650px 550px at 110% 120%, rgba(0, 255, 217, 0.28), transparent 72%),
    var(--lk-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: var(--lk-shadow);
  backdrop-filter: blur(20px);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--lk-card-border);
  opacity: 0.13;
  pointer-events: none;
}

.auth-card__header {
  margin-bottom: 18px;
}

.auth-card__header h1 {
  font-family: "Exo 2", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--lk-text-main);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-card__header h1::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--lk-accent), var(--lk-accent-2));
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.85);
  vertical-align: -4px;
}

.auth-card__header p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--lk-text-muted);
}

/* Flash-сообщения */
.auth-card__flash {
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.auth-card__flash--error {
  border: 1px solid rgba(248, 113, 113, 0.8);
  background: rgba(127, 29, 29, 0.18);
  color: #fecaca;
}

/* Форма */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form__group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lk-text-muted);
}

/* Поля ввода в формах логина/регистрации */
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 255, 0.4);
  background: rgba(4, 5, 20, 0.96);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--lk-text-main);
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, transform 0.08s ease;
}

.auth-form input[type="text"]::placeholder,
.auth-form input[type="password"]::placeholder,
.auth-form input[type="email"]::placeholder {
  color: rgba(148, 163, 255, 0.55);
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus {
  border-color: var(--lk-accent);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.7), 0 0 18px rgba(139, 92, 246, 0.9);
  background: radial-gradient(circle at 0 0, rgba(139, 92, 246, 0.26), rgba(4, 5, 20, 0.96));
  transform: translateY(-0.5px);
}

.auth-form input:focus {
  border-color: var(--lk-accent);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.7), 0 0 18px rgba(139, 92, 246, 0.9);
  background: radial-gradient(circle at 0 0, rgba(139, 92, 246, 0.26), rgba(4, 5, 20, 0.96));
  transform: translateY(-0.5px);
}

/* Кнопки (общие стили как в настройках) */
.lk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}

.lk-btn--primary {
  border-color: rgba(139, 92, 246, 0.95);
  background: linear-gradient(135deg, var(--lk-accent), var(--lk-accent-2));
  color: #050816;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.8);
}

.lk-btn--ghost {
  border-color: rgba(148, 163, 255, 0.7);
  background: rgba(10, 12, 35, 0.96);
  color: var(--lk-text-main);
  box-shadow: 0 8px 20px rgba(5, 7, 28, 0.9);
}

.lk-btn--full {
  width: 100%;
}

.lk-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(139, 92, 246, 1);
}

.lk-btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 219, 254, 0.95);
}

.lk-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Кнопки формы */
.auth-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.auth-form__hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--lk-text-muted);
}

/* Предупреждение */
.auth-warning {
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(248, 250, 252, 0.45);
  background: rgba(15, 23, 42, 0.8);
  font-size: 12px;
  color: var(--lk-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.auth-warning strong {
  color: #f97316;
}

/* Правая боковая панель */
.auth-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-side__card {
  position: relative;
  border-radius: 18px;
  padding: 20px 20px 22px;
  background:
    radial-gradient(650px 550px at 0% 0%, rgba(0, 255, 217, 0.25), transparent 70%),
    rgba(8, 8, 26, 0.96);
  border: 1px solid rgba(148, 163, 255, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);
}

.auth-side__card h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lk-text-main);
  margin-bottom: 6px;
}

.auth-side__card p {
  font-size: 13px;
  color: var(--lk-text-muted);
  margin-bottom: 10px;
}

.auth-side__list {
  margin: 0 0 12px 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--lk-text-main);
}

.auth-side__list li {
  margin-bottom: 4px;
}

/* Футер */
.auth-footer {
  max-width: 1120px;
  margin: 16px auto 0;
  padding: 0 16px;
  font-size: 12px;
  color: var(--lk-text-muted);
  text-align: center;
}

/* Адаптив */
@media (max-width: 960px) {
  .auth-page__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-side {
    order: -1;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 18px 16px 20px;
  }

  .auth-card__header h1 {
    font-size: 22px;
  }

  .auth-form__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-page {
    padding-top: 28px;
  }
}
/* ===== Регистрация: блок правил и соглашения ===== */

.auth-card__flash--success {
  border-radius: 12px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  border: 1px solid rgba(34, 197, 94, 0.85);
  background: rgba(22, 101, 52, 0.28);
  color: #bbf7d0;
}

.auth-terms {
  margin-top: 6px;
  margin-bottom: 10px;
}

.auth-terms h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lk-text-main);
  margin-bottom: 6px;
}

.auth-terms__intro {
  font-size: 12px;
  color: var(--lk-text-muted);
  margin-bottom: 8px;
}

.auth-terms__intro a {
  color: var(--lk-accent-2);
}

.auth-terms__box {
  max-height: 200px;              /* было 230 — карточка станет ниже */
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 255, 0.6);
  background: rgba(5, 7, 26, 0.96);
  padding: 8px 10px;
  overflow-y: auto;
  font-size: 11px;                /* шрифт поменьше */
  color: var(--lk-text-main);
  line-height: 1.45;
}


.auth-terms__box h3,
.auth-terms__box h4 {
  font-size: 12px;    /* было 13 */
  margin: 4px 0 2px;  /* меньше отступов */
}


.auth-terms__box ol {
  padding-left: 18px;
  margin: 0 0 4px;
}

.auth-terms__box ul {
  padding-left: 18px;
  margin: 2px 0 4px;
}

.auth-terms__box a {
  color: var(--lk-accent-2);
}

.auth-terms__hint {
  margin-top: 3px;
  font-size: 10px;
  color: var(--lk-text-muted);
}


.auth-terms__checkboxes {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-terms__check {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--lk-text-main);
}

.auth-terms__check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-terms__check span a {
  color: var(--lk-accent-2);
}

.auth-terms__check--disabled {
  opacity: 0.6;
}

/* Чуть сжимаем на мобилке */
@media (max-width: 640px) {
  .auth-terms__box {
    max-height: 210px;
  }
}
