/* Экран входа. Прежний строился на янтарных градиентах и радиальных
   свечениях — после перехода палитры на янтарь страница оказалась залита
   оранжевым целиком. Здесь то же, что и везде: плоская панель, 1px граница,
   акцент только на кнопке входа. */

.auth-page {
  --auth-line: var(--ui-line);
  --auth-tx: var(--ui-tx);
  --auth-tx-dim: var(--ui-tx-dim);
  --auth-tx-faint: var(--ui-tx-faint);
  --auth-radius: var(--ui-radius);

  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: none;
}

html[data-theme="light"] .auth-page {
  --auth-line: #ccd0d7;
  --auth-tx-faint: #767d89;
}

/* base.css красит карточку правилом с префиксом темы — повторяем длину
   селектора, иначе остаются янтарная рамка и тяжёлая тень. */
html[data-theme="dark"] .auth-page .auth-card,
html[data-theme="light"] .auth-page .auth-card,
.auth-page .auth-card {
  position: relative;
  box-sizing: border-box;
  width: min(380px, 100%);
  padding: 26px 26px 24px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: var(--ui-panel);
  box-shadow: none;
  backdrop-filter: none;
}

/* Радиальные подсветки в углах карточки. */
.auth-page .auth-card::before,
.auth-page .auth-card::after { content: none; }

.auth-card-header { margin-bottom: 20px; }

.auth-page .auth-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--auth-tx);
}

html[data-theme="dark"] .auth-page .auth-subtitle,
html[data-theme="light"] .auth-page .auth-subtitle,
.auth-page .auth-subtitle {
  margin: 5px 0 0;
  font-size: var(--ui-fs-sm);
  line-height: 1.5;
  color: var(--auth-tx-dim);
}

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

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

.auth-page .form-field > label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--auth-tx-faint);
}

/* base.css растягивает поля внутри form и вешает margin: 8px 0. */
.auth-page .auth-input,
html[data-theme="dark"] .auth-page .auth-input,
html[data-theme="light"] .auth-page .auth-input {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: var(--ui-surface);
  color: var(--auth-tx);
  font-family: inherit;
  font-size: 13px;
  box-shadow: none;
  transition: border-color 0.12s ease;
}

.auth-page .auth-input:focus,
html[data-theme="dark"] .auth-page .auth-input:focus {
  border-color: var(--ui-accent);
  outline: none;
  box-shadow: none;
}

/* Единственный акцент на экране: главное и единственное действие. */
.auth-page .auth-button,
html[data-theme="dark"] .auth-page .auth-button {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  margin: 4px 0 0;
  padding: 0 14px;
  border: 1px solid var(--ui-accent);
  border-radius: var(--auth-radius);
  background: var(--ui-accent);
  color: #1b1405;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: filter 0.12s ease;
}

.auth-page .auth-button:hover,
.auth-page .auth-button:focus-visible,
html[data-theme="dark"] .auth-page .auth-button:hover {
  filter: brightness(1.06);
  transform: none;
  box-shadow: none;
}

.auth-page .auth-button-secondary,
html[data-theme="dark"] .auth-page .auth-button-secondary {
  border-color: var(--auth-line);
  background: var(--ui-surface);
  color: var(--auth-tx);
}

/* Разделитель «или»: линия с подписью посередине. */
.auth-page .auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: var(--ui-fs-xs);
  color: var(--auth-tx-faint);
  background: none;
}

.auth-page .auth-divider::before,
.auth-page .auth-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--auth-line);
}

.auth-page .auth-alert,
html[data-theme="dark"] .auth-page .auth-alert {
  margin: 0 0 14px;
  padding: 9px 11px;
  border: 1px solid var(--ui-err);
  border-radius: var(--auth-radius);
  background: none;
  color: var(--ui-err);
  font-size: var(--ui-fs-sm);
  line-height: 1.45;
  box-shadow: none;
}

.auth-page .auth-alert-success {
  border-color: var(--ui-ok);
  color: var(--ui-ok);
}

.auth-page .auth-alert-info {
  border-color: var(--auth-line);
  color: var(--auth-tx-dim);
}

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

@media (max-width: 480px) {
  .auth-page { padding: 16px; }
  .auth-page .auth-card { padding: 20px 18px; }
}
