.login-page {
  overflow-x: hidden;
  overflow-y: auto;
}

.login-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: min(520px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 30px 20px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.login-brand .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.login-brand .brand-mark::after {
  inset: 13px 15px;
}

.login-brand .brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.login-brand h1 {
  font-size: 34px;
  line-height: 1;
}

.login-brand .subtitle {
  margin-top: 5px;
  font-size: 11px;
  text-align: left;
}

.login-card {
  position: relative;
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 35%),
    rgba(10, 16, 30, 0.9);
  box-shadow: var(--shadow), 0 0 60px rgba(167, 139, 250, 0.06);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(125, 211, 252, 0.28), transparent 32%, transparent 70%, rgba(167, 139, 250, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.login-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.login-lead {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.yandex-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(252, 63, 29, 0.45);
  border-radius: 14px;
  background: rgba(252, 63, 29, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.yandex-login:hover,
.yandex-login:focus-visible {
  border-color: rgba(252, 63, 29, 0.85);
  background: rgba(252, 63, 29, 0.2);
  outline: none;
}

.yandex-mark {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.login-error {
  margin: 13px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: 11px;
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
  font-size: 12px;
  line-height: 1.45;
}

.login-note {
  margin: 18px 0 0;
  color: rgba(141, 155, 181, 0.76);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.login-footer {
  margin: 0;
  color: rgba(141, 155, 181, 0.7);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 500px) {
  .login-shell {
    gap: 20px;
    padding: 20px 13px;
  }

  .login-brand h1 {
    font-size: 30px;
  }

  .login-card {
    padding: 23px 19px;
    border-radius: 22px;
  }
}
