/* Страница входа. Р-47 §5. */

.login {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--login-bg);
}

.login__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.login__wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login__card {
  width: 440px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 44px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-login);
  box-shadow: var(--shadow-card);
}

.login__logo {
  height: 54px;
  align-self: center;
  margin-bottom: 8px;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.login__submit {
  height: 48px;
  font-size: 15px;
}

/* Сообщение об ошибке и о паузе — под кнопкой (ТЗ §2.6). */
.login__message {
  margin: -8px 0 0;
  font-size: var(--fs-text);
  color: var(--neg);
  line-height: 1.45;
}

.login__note {
  display: flex;
  gap: 8px;
  font-size: var(--fs-note);
  color: var(--muted);
  line-height: 1.45;
}

.login__note svg {
  flex-shrink: 0;
}

/* Поле пароля с кнопкой «Показать пароль» */
.pw {
  position: relative;
}

.pw__input {
  padding-right: 48px;
}

.pw__toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}