.login-page {
  --blue-950: #052b52;
  --blue-800: #07508f;
  --blue-600: #0b78ca;
  --blue-100: #dff2ff;
  --ink: #102a43;
  min-height: 100vh;
  background: #edf7fd;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

.login-page > header,
.login-page > main > .page-title,
.login-page > footer {
  display: none;
}

.login-page > main {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 14% 18%, #9edcff55 0 8%, transparent 24%),
    radial-gradient(circle at 88% 83%, #6bbbe747 0 7%, transparent 22%),
    linear-gradient(145deg, #f7fcff, #dceffa);
}

.login-stage::before,
.login-stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid #0b78ca17;
  border-radius: 50%;
}

.login-stage::before {
  width: 520px;
  height: 520px;
  top: -330px;
  right: -190px;
  box-shadow: 0 0 0 54px #0b78ca0a, 0 0 0 108px #0b78ca08;
}

.login-stage::after {
  width: 420px;
  height: 420px;
  bottom: -300px;
  left: -180px;
  box-shadow: 0 0 0 48px #07508f09;
}

.login-card {
  width: min(100%, 470px);
  overflow: hidden;
  border: 1px solid #ffffffcc;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 65px #07487722, 0 4px 12px #07487712;
}

.login-brand {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 32px;
  border-bottom: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800) 54%, var(--blue-600));
}

.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff18;
  border-radius: 50%;
}

.login-brand::before {
  width: 260px;
  height: 260px;
  top: -170px;
  right: -115px;
  box-shadow: 0 0 0 34px #ffffff09;
}

.login-brand::after {
  width: 180px;
  height: 180px;
  bottom: -135px;
  left: -95px;
}

.login-brand img {
  position: relative;
  z-index: 1;
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px #001c3a4d);
}

.login-brand h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 380px;
  color: #fff;
  font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
  font-size: clamp(22px, 4vw, 28px);
  font-stretch: condensed;
  font-weight: 850;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.login-brand p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #cdeaff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .07em;
}

.login-body {
  padding: 22px 34px 25px;
}

.login-form {
  display: grid;
  gap: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin: 0 0 11px;
  padding: 0;
  border: 0;
}

.role-options > * { grid-column: span 2; }
.role-options > :nth-child(5) { grid-column: 2 / span 2; }

.role-choice {
  position: relative;
  min-height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid #c9dfea;
  border-radius: 10px;
  background: #f8fcff;
  color: #245273;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  cursor: pointer;
}

.role-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
}

.role-choice span {
  width: 100%;
  min-height: 36px;
  display: grid;
  place-items: center;
  padding: 4px;
  border-radius: 9px;
}

.role-choice input:checked + span {
  color: #fff;
  background: linear-gradient(110deg, var(--blue-950), var(--blue-600));
  box-shadow: 0 5px 12px #07508f25;
}

.role-choice input:focus-visible + span {
  outline: 3px solid #63baf0;
  outline-offset: 2px;
}

.role-choice.unavailable {
  border-color: #e2e9ef;
  background: #f5f7f9;
  color: #9caeb9;
  cursor: not-allowed;
}

.login-form > label {
  margin-top: 4px;
  color: #1d3f5c;
  font-size: 12px;
  font-weight: 750;
}

.login-input {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #cfe0ec;
  border-radius: 13px;
  background: #f8fcff;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.login-input:focus-within {
  border-color: var(--blue-600);
  background: #fff;
  box-shadow: 0 0 0 4px #0b78ca16;
}

.login-input > span {
  color: var(--blue-600);
  font-size: 15px;
}

.login-input input {
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.login-input input:focus { outline: 0; box-shadow: none; }
.login-input input::placeholder { color: #91a5b4; }

.login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 13px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(110deg, var(--blue-950), var(--blue-600));
  box-shadow: 0 12px 24px #07508f25;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s;
}

.login-submit:hover {
  background: linear-gradient(110deg, #042442, #086bad);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px #07508f32;
}

.login-submit span:last-child { font-size: 19px; font-weight: 400; }

.login-help {
  margin: 18px 0 0;
  color: #788d9c;
  font-size: 11px;
  text-align: center;
}

.login-error {
  margin: -4px 0 14px;
  border: 1px solid #d3e4ef;
  border-left: 4px solid var(--blue-600);
  border-radius: 10px;
  font-size: 12px;
}

@media (max-width: 520px) {
  .login-stage { align-items: center; padding: 12px; }
  .login-card { border-radius: 24px; }
  .login-brand { min-height: 195px; gap: 7px; padding: 18px; }
  .login-brand img { flex-basis: 94px; width: 94px; height: 94px; }
  .login-brand h1 { font-size: clamp(20px, 6vw, 25px); }
  .login-brand p { font-size: 10px; }
  .login-body { padding: 24px 22px 22px; }
  .role-choice { font-size: 11px; }
  .login-help { margin-top: 15px; }
}

@media (max-height: 620px) and (min-width: 521px) {
  .login-stage { padding: 12px; }
  .login-brand { min-height: 165px; }
  .login-brand img { flex-basis: 80px; width: 80px; height: 80px; }
  .login-body { padding-block: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit,
  .login-input { transition: none; }
}
