.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 56px;
  background-color: #0d0d0d;
  background-image: url("../../images/login-bg.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.login-page__welcome {
  text-align: center;
  color: var(--color-white);
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.login-page__welcome-label {
  display: block;
  font-size: var(--font-size-xl);
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.login-page__welcome-brand {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.login-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.login-form__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.login-form__legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.login-form__legal-sep {
  color: var(--color-link);
  font-size: var(--font-size-xs);
}

.version-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.version-choice__option--wide {
  grid-column: 1 / -1;
}

.version-choice__option {
  margin: 0;
  cursor: pointer;
}

.version-choice__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.version-choice__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #d5dbe3;
  border-radius: var(--radius-md);
  background: #f7f9fc;
  color: var(--color-text);
}

.version-choice__card strong {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.version-choice__card small {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.version-choice__option input:checked + .version-choice__card {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
  box-shadow: inset 0 0 0 1px var(--color-accent);
}

.version-choice__option input:focus-visible + .version-choice__card {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .card--login {
    padding: 24px 20px 20px;
  }

  .login-page__welcome-label {
    font-size: 18px;
  }

  .login-page__welcome-brand {
    font-size: 24px;
  }

  .logo--corner {
    right: 16px;
    bottom: 12px;
  }

  .version-choice {
    grid-template-columns: 1fr;
  }
}
