.user-page a,
.login-page a,
.register-page a,
.forgot-page a,
.reset-page a,
.verify-page a {
  color: #0b2a6f;
  text-decoration: none;
}
.user-page a:hover,
.login-page a:hover,
.register-page a:hover,
.forgot-page a:hover,
.reset-page a:hover,
.verify-page a:hover {
  text-decoration: underline;
}

/* Сообщения об ошибках (общие) */
.form-errors {
  position: relative;
  padding: 12px 40px 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid #f3b6b6;
  margin-bottom: 12px;
  background: #fdecec;
  color: #7a1a1a;
}
.form-errors__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid #e6e9ef;
  border-radius: 50%;
  background: #ffffff;
  color: #6b7280;
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.form-errors__close:hover {
  background: #f3f5f9;
  color: #374151;
  border-color: #d5dae3;
}

/* Чекбокс-лейбл (общий) */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Визуально скрытый (a11y) */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Поле пароля с «глазом» (единый компонент для всех страниц) */
.password-field.password-field--with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e6e9ef;
  background: #ffffff;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.password-toggle-btn:hover {
  background: #f3f5f9;
  border-color: #d5dae3;
}
.password-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 42, 111, 0.15);
}
.password-toggle-btn .icon-eye-off {
  display: none;
}
.password-toggle-btn.is-on .icon-eye {
  display: none;
}
.password-toggle-btn.is-on .icon-eye-off {
  display: inline;
}

/* Отступ под кнопку-«глаз» у инпутов разных страниц */
.password-field.password-field--with-icon .login-page__input,
.password-field.password-field--with-icon .register-page__input,
.password-field.password-field--with-icon .reset-page__input,
.user-page__password.user-page__password--with-icon .user-page__input {
  padding-right: 44px;
}

/* =========================
   1) USER PAGE
   ========================= */

.user-page {
  background: #f7f8fb;
  padding: clamp(16px, 2vw, 28px) 0 48px;
  color: #0f172a;
}
.user-page__container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}
.user-page__title {
  margin: 6px 0 18px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

/* Карточки и контент */
.user-page__profile {
  display: grid;
  gap: 18px;
}
.user-page__card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
.user-page__card--danger {
  border-style: dashed;
}
.user-page__subtitle {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}

/* Пары ключ-значение */
.user-page__kv {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 16px;
  padding: 10px 0;
  border-top: 1px dashed #e6e9ef;
}
.user-page__kv:first-of-type {
  border-top: none;
}
.user-page__kv-key {
  color: #6b7280;
}

/* Аватар */
.user-page__avatar-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #dde2ee;
}
.user-page__avatar {
  width: 85%;
  height: 85%;
  object-fit: cover;
}

/* Предупреждение верификации */
.user-page__verify {
  margin-top: 12px;
  background: #fff7e6;
  border: 1px solid #f2d19c;
  color: #7a4c0f;
  padding: 12px 14px;
}

/* Формы */
.user-page__form {
  display: grid;
  gap: 14px;
}
.user-page__form--inline {
  grid-template-columns: auto;
}
.user-page__field {
  display: grid;
  gap: 6px;
}
.user-page__label {
  font-weight: 700;
  font-size: 14px;
}

/* Инпуты */
.user-page__input[type='text'],
.user-page__input[type='email'],
.user-page__input[type='password'],
.user-page__input[type='file'] {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
}
.user-page__input:focus {
  border-color: #0b2a6f;
  box-shadow: 0 0 0 4px rgba(11, 42, 111, 0.1);
}
.user-page__input.is-valid {
  border-color: #1f9d55;
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.12);
}
.user-page__input.is-invalid {
  border-color: #d64545;
  box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.1);
}

/* Пароли на user-page */
.user-page__password {
  position: relative;
  display: flex;
  gap: 8px;
  align-items: center;
}
.user-page__password-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}
.user-page__password-hint.ok {
  color: #1f9d55;
}

/* Кнопки */
.user-page__actions {
  margin-top: 4px;
}
.user-page__btn {
  display: inline-block;
  padding: 12px 16px;
  background: #0b2a6f;
  color: #ffffff;
  border: 1px solid #0b2a6f;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}
.user-page__btn:hover {
  background: #0a2360;
}
.user-page__btn:active {
  transform: translateY(1px);
}
.user-page__btn--outline {
  background: transparent;
  color: #0b2a6f;
  border-color: #0b2a6f;
}
.user-page__btn--outline:hover {
  background: #e9eefb;
}

/* Алерты user-page */
.user-page__alert {
  position: relative;
  padding: 12px 40px 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid;
  margin-bottom: 12px;
}
.user-page__alert--error {
  background: #fdecec;
  color: #7a1a1a;
  border-color: #f3b6b6;
}
.user-page__alert--success {
  background: #e8f7ee;
  color: #155c2d;
  border-color: #a8e0bf;
}
.user-page__alert-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid #e6e9ef;
  background: #ffffff;
  color: #6b7280;
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  border-radius: 50%;
}
.user-page__alert-close:hover {
  background: #f3f5f9;
  color: #374151;
  border-color: #d5dae3;
}

/* Адаптив user-page */
@media (max-width: 540px) {
  .user-page__kv {
    grid-template-columns: 1fr;
  }
  .user-page__card {
    padding: 16px;
  }
  .user-page__btn {
    width: 100%;
  }
}

/* =========================
   2) LOGIN PAGE
   ========================= */

.login-page {
  background: #f7f8fb;
  padding: clamp(16px, 2vw, 28px) 0 48px;
  color: #0f172a;
}
.login-page__container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}
.login-page__title {
  margin: 6px 0 18px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

/* Форма-карточка */
.login-page__form {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  display: grid;
  gap: 14px;
}
.login-page__field {
  display: grid;
  gap: 6px;
}
.login-page__label {
  font-weight: 700;
  font-size: 14px;
}

/* Поля ввода */
.login-page__input[type='text'],
.login-page__input[type='email'],
.login-page__input[type='password'] {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
}
.login-page__input:focus {
  border-color: #0b2a6f;
  box-shadow: 0 0 0 4px rgba(11, 42, 111, 0.1);
}

/* Ряды и действия */
.login-page__row {
  display: grid;
  gap: 10px;
}
.login-page__row--inline {
  display: flex;
  gap: 12px;
  align-items: center;
}
.login-page__row--inline .login-page__link {
  margin-left: auto;
}
.login-page__actions {
  margin-top: 4px;
}
.login-page__btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  background: #0b2a6f;
  color: #ffffff;
  border: 1px solid #0b2a6f;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}
.login-page__btn:hover {
  background: #0a2360;
}
.login-page__btn:active {
  transform: translateY(1px);
}
.login-page__hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: #374151;
}

/* Адаптив login */
@media (max-width: 540px) {
  .login-page__form {
    padding: 16px;
  }
}

/* =========================
   3) REGISTER PAGE
   ========================= */

.register-page {
  background: #f7f8fb;
  padding: clamp(16px, 2vw, 28px) 0 48px;
  color: #0f172a;
}
.register-page__container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}
.register-page__title {
  margin: 6px 0 18px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}

/* Карточка формы */
.register-page__form {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  display: grid;
  gap: 14px;
}
.register-page__field {
  display: grid;
  gap: 6px;
}
.register-page__label {
  font-weight: 700;
  font-size: 14px;
}

/* Поля ввода */
.register-page__input[type='text'],
.register-page__input[type='email'],
.register-page__input[type='password'] {
  width: 95%;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
}
.register-page__input:focus {
  border-color: #0b2a6f;
  box-shadow: 0 0 0 4px rgba(11, 42, 111, 0.1);
}

/* Ряды/кнопки/подсказки */
.register-page__row {
  display: grid;
  gap: 10px;
}
.register-page__row--inline {
  display: flex;
  gap: 12px;
  align-items: center;
}
.register-page__actions {
  margin-top: 4px;
}
.register-page__btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  background: #0b2a6f;
  color: #ffffff;
  border: 1px solid #0b2a6f;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}
.register-page__btn:hover {
  background: #0a2360;
}
.register-page__btn:active {
  transform: translateY(1px);
}
.register-page__hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: #374151;
}
.register-page__password-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}
.register-page__note {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

/* Адаптив register */
@media (max-width: 540px) {
  .register-page__form {
    padding: 16px;
  }
}

/* =========================
   4) FORGOT PAGE
   ========================= */

.forgot-page {
  background: #f7f8fb;
  padding: clamp(16px, 2vw, 28px) 0 48px;
  color: #0f172a;
}
.forgot-page__container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}
.forgot-page__title {
  margin: 6px 0 18px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}
.forgot-page__form {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  display: grid;
  gap: 14px;
}
.forgot-page__field {
  display: grid;
  gap: 6px;
}
.forgot-page__label {
  font-weight: 700;
  font-size: 14px;
}
.forgot-page__input[type='email'] {
  width: 95%;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
}
.forgot-page__input:focus {
  border-color: #0b2a6f;
  box-shadow: 0 0 0 4px rgba(11, 42, 111, 0.1);
}
.forgot-page__actions {
  margin-top: 4px;
}
.forgot-page__btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  background: #0b2a6f;
  color: #ffffff;
  border: 1px solid #0b2a6f;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}
.forgot-page__btn:hover {
  background: #0a2360;
}
.forgot-page__btn:active {
  transform: translateY(1px);
}
.forgot-page__link {
  color: #0b2a6f;
  text-decoration: none;
}
.forgot-page__link:hover {
  text-decoration: underline;
}
.forgot-page__hint {
  margin: 6px 0 0;
  font-size: 14px;
  color: #374151;
}
.forgot-page__note {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
@media (max-width: 540px) {
  .forgot-page__form {
    padding: 16px;
  }
}

/* =========================
   5) RESET PAGE
   ========================= */

.reset-page {
  background: #f7f8fb;
  padding: clamp(16px, 2vw, 28px) 0 48px;
  color: #0f172a;
}
.reset-page__container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px;
}
.reset-page__title {
  margin: 6px 0 18px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}
.reset-page__form {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  display: grid;
  gap: 14px;
}
.reset-page__field {
  display: grid;
  gap: 6px;
}
.reset-page__label {
  font-weight: 700;
  font-size: 14px;
}
.reset-page__input[type='password'] {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
}
.reset-page__input:focus {
  border-color: #0b2a6f;
  box-shadow: 0 0 0 4px rgba(11, 42, 111, 0.1);
}
.reset-page__password-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}
.reset-page__actions {
  margin-top: 4px;
}
.reset-page__btn {
  display: inline-block;
  width: 100%;
  padding: 12px 16px;
  background: #0b2a6f;
  color: #ffffff;
  border: 1px solid #0b2a6f;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.04s ease;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.06);
}
.reset-page__btn:hover {
  background: #0a2360;
}
.reset-page__btn:active {
  transform: translateY(1px);
}
.reset-page__link {
  color: #0b2a6f;
  text-decoration: none;
}
.reset-page__link:hover {
  text-decoration: underline;
}
.reset-page__note {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
@media (max-width: 540px) {
  .reset-page__form {
    padding: 16px;
  }
}

/* =========================
   6) VERIFY EMAIL PAGE
   ========================= */

.verify-page {
  background: #f7f8fb;
  padding: clamp(16px, 2vw, 28px) 0 48px;
  color: #0f172a;
}
.verify-page__container {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px;
}
.verify-page__title {
  margin: 6px 0 18px;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  font-weight: 800;
}
.verify-page__card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  font-size: 15px;
  line-height: 1.6;
}
.verify-page__card--success {
  border-color: #a8e0bf;
  background: #e8f7ee;
  color: #155c2d;
}
.verify-page__card--error {
  border-color: #f3b6b6;
  background: #fdecec;
  color: #7a1a1a;
}
.verify-page__link {
  color: #0b2a6f;
  text-decoration: none;
  font-weight: 700;
}
.verify-page__link:hover {
  text-decoration: underline;
}
@media (max-width: 540px) {
  .verify-page__card {
    padding: 16px;
  }
}
