/* Общая обертка для auth-страниц */
.auth-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
}

/* Карточка формы */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

/* Заголовок */
.auth-card .page-title {
  font: 700 22px/1.3 Inter, sans-serif;
  margin-bottom: 20px;
  text-align: center;
}

/* Сетка в одну колонку */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Поле формы */
.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

.input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}

.input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Кнопки */
.form-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 9999px;
  font: 600 14px/1 Inter, sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s, border .2s;
  text-decoration: none;
}

.button--primary {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
}

.button--primary:hover {
  background: #1e4ed8;
}

.button--ghost {
  background: #fff;
  color: #2563eb;
  border: 1px solid #d1d5db;
}

.button--ghost:hover {
  border-color: #2563eb;
}

/* Хелп-текст под кнопкой */
.form-help {
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

.form-help a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.form-help a:hover {
  text-decoration: underline;
}

/* Ошибки */
.text-danger {
  font-size: 13px;
  color: #dc2626;
}

/* обёртка для поля с иконкой */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* сам input с отступом справа */
.input--with-icon-right {
  padding-right: 40px;
}

/* кнопка-глазик */
.input-btn-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}