html,
body {
  min-height: 100%;
}

body.login-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Arial, sans-serif;
  background: #06172f;
  color: #f4f8ff;
  overflow: hidden;
  position: relative;
}

/* фоновая картинка */
body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("/images/login-bg.png") center center / cover no-repeat;
  opacity: 0.62;
  transform: scale(1.04);
  pointer-events: none;
}

/* затемнение и акцент под форму */
body.login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(70, 120, 255, 0.12), transparent 0 18%),
    radial-gradient(circle at 50% 50%, rgba(6, 23, 47, 0.18), rgba(6, 23, 47, 0.82) 58%, rgba(3, 12, 26, 0.94) 100%);
  pointer-events: none;
}

.login-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 460px;
  padding: 30px 30px 28px;
  border-radius: 28px;
  background: rgba(9, 27, 55, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 90px rgba(80, 140, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.login-brand-mark {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
}

.login-brand-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(149, 255, 73, 0.75);
  box-shadow: 0 0 14px rgba(149, 255, 73, 0.14);
}

.login-brand-ring.ring-1 {
  width: 52px;
  height: 52px;
  opacity: 0.28;
}

.login-brand-ring.ring-2 {
  width: 38px;
  height: 38px;
  opacity: 0.48;
}

.login-brand-ring.ring-3 {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.login-brand-core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9bff49;
  box-shadow:
    0 0 12px rgba(155, 255, 73, 0.75),
    0 0 28px rgba(155, 255, 73, 0.35);
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.login-brand-title {
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.login-brand-subtitle {
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(204, 220, 246, 0.72);
}

.login-head {
  margin-bottom: 22px;
}

.login-title {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5f8ff;
}

.login-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(205, 220, 245, 0.84);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: rgba(223, 233, 250, 0.92);
}

.login-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #122b57;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-input::placeholder {
  color: #9aa8bf;
}

.login-input:focus {
  border-color: rgba(111, 169, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(77, 141, 247, 0.18);
  transform: translateY(-1px);
}

.login-error {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #ffd9d9;
  background: rgba(190, 45, 45, 0.18);
  border: 1px solid rgba(255, 120, 120, 0.18);
}

.login-button {
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #69a5ff 0%, #3b7eff 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 16px 34px rgba(59, 126, 255, 0.32),
    0 0 26px rgba(59, 126, 255, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.login-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 38px rgba(59, 126, 255, 0.38),
    0 0 30px rgba(59, 126, 255, 0.22);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .login-layout {
    padding: 20px 14px;
  }

  .login-card {
    padding: 24px 20px 22px;
    border-radius: 22px;
  }

  .login-title {
    font-size: 28px;
  }

  .login-subtitle {
    font-size: 14px;
  }

  .login-brand-title {
    font-size: 19px;
  }
}
/* Общий масштаб страницы */
body {
  font-size: 14px; /* было ~16–18 */
}

/* Контейнер формы */
.login-card {
  max-width: 360px; /* было ~420–480 */
  padding: 24px 20px; /* уменьшили */
  border-radius: 16px;
}

/* Заголовок */
.login-card h1 {
  font-size: 22px; /* было ~28–32 */
  margin-bottom: 8px;
}

/* Подзаголовок */
.login-card p {
  font-size: 13px;
  margin-bottom: 16px;
}

/* Поля ввода */
.login-card input {
  height: 42px; /* было ~50–56 */
  font-size: 14px;
  border-radius: 10px;
  padding: 0 12px;
}

/* Кнопка */
.login-card button {
  height: 44px;
  font-size: 14px;
  border-radius: 10px;
}

/* Отступы между элементами */
.login-card .form-group {
  margin-bottom: 12px;
}