.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(91,111,209,0.09), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(91,111,209,0.07), transparent 40%),
    var(--bg);
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 16px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-mark {
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
}

.login-logo .logo-text {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--sidebar-bg);
  letter-spacing: -0.02em;
}

.login-logo .logo-dot {
  background: #7F87C0;
}

.login-logo .logo-sub {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrap input {
  flex: 1;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0;
}

/* значок глаза — линией, как значки меню */
.toggle-password svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toggle-password:hover {
  color: var(--sidebar-bg);
}

.toggle-password:focus-visible {
  outline: 2px solid #7F87C0;
  outline-offset: 0;
}

/* «Забыли пароль?», страницы нового пароля и подтверждения почты (js/account.js) */
.login-forgot { margin: 16px 0 0; text-align: center; font-size: 14px; }
.login-forgot a { color: var(--primary); text-decoration: none; }
.form-ok { padding: 10px 12px; border-radius: 10px; background: var(--success-light); color: var(--success); font-size: 14px; margin-bottom: 12px; }
.form-ok[hidden], .login-form[hidden] { display: none; }
