/* ============================================
Страницы входа и регистрации
============================================ */

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10rem);
  padding: 2.5rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 27.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-md);
}

.auth-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-card__subtitle {
  font-size: 0.95rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 2rem;
}

/* Поля формы */
.auth-form-group {
  margin-bottom: 1.25rem;
}

.auth-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.38rem;
}

.auth-form-group input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #1e293b;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 113, 202, 0.12);
}

.auth-form-group input::placeholder {
  color: #cbd5e1;
}

/* Ошибки */
.auth-error {
  font-size: 0.82rem;
  color: #ef4444;
  margin-top: 0.38rem;
  padding: 0.5rem 0.75rem;
  background: #fef2f2;
  border-radius: 8px;
  line-height: 1.4;
}

.auth-error--global {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

/* Кнопка */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.81rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.auth-btn:hover {
  background: var(--blue-hover);
}

.auth-btn:active {
  transform: scale(0.97);
}

/* Ссылка внизу */
.auth-card__footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.auth-card__footer a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 480px) {
  .auth-card {
    padding: 1.75rem 1.38rem;
  }
  .auth-card__title {
    font-size: 1.3rem;
  }
}

/* ============================================
Страница успешной регистрации
============================================ */

.auth-success-icon {
  margin-bottom: 1rem;
}

.auth-success-steps {
  text-align: left;
  background: #f0fdf9;
  border: 1px solid #b2f0e2;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.auth-success-steps__heading {
  font-weight: 700;
  font-size: 0.9rem;
  color: #115e59;
  margin-bottom: 0.63rem;
}

.auth-success-steps__list {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-success-steps__list li {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.5;
}

/* Кнопка-контурная (outline) версия для auth-btn */
.auth-btn--outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.auth-btn--outline:hover {
  background: rgba(59, 113, 202, 0.06);
  color: var(--blue);
}

/* Контейнер для двух кнопок */
.auth-success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
