.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #080f1c;
  color: #e5edf8;
}

.login-frame {
  width: min(760px, 100%);
}

.login-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  overflow: hidden;
  border: 1px solid #2a3b52;
  border-radius: 8px;
  background: #101827;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.login-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 3px 0;
  color: #73859c;
  font-size: 0.66rem;
  line-height: 1.5;
}

.login-copyright a {
  flex: 0 0 auto;
  color: #8ca1ba;
  text-decoration: none;
}

.login-copyright a:hover {
  color: #cbd8e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-brand,
.login-panel {
  padding: 36px;
}

.login-brand {
  border-right: 1px solid #28374b;
  background: #0d1625;
}

.login-brand > span,
.login-panel header span {
  display: block;
  margin-top: 22px;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
}

.login-brand h1 {
  margin-top: 6px;
  color: #f8fafc;
  font-size: 1.8rem;
}

.login-brand p {
  color: #91a4bd;
  font-size: 0.82rem;
}

.login-security {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 54px;
  padding-top: 16px;
  border-top: 1px solid #25354a;
}

.login-security svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #22c55e;
  stroke-width: 1.8;
}

.login-security strong,
.login-security small {
  display: block;
}

.login-security strong { font-size: 0.76rem; }
.login-security small { margin-top: 2px; color: #768aa4; font-size: 0.66rem; }

.login-panel {
  align-self: center;
  min-height: 422px;
  background: #f8fafc;
  color: #111827;
}

.login-panel header span { margin-top: 0; }
.login-panel h2 { margin-top: 4px; font-size: 1.16rem; }
.login-form { display: grid; gap: 14px; margin-top: 22px; }
.login-panel [hidden] { display: none !important; }
.login-form label { gap: 5px; font-size: 0.78rem; }
.login-form input { background: #fff; }
.login-form button { margin-top: 4px; }
.login-registration-hint {
  margin: -3px 0 0;
  color: #73849a;
  font-size: 0.67rem;
  line-height: 1.45;
  text-align: center;
}
.login-code-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.login-code-row label {
  min-width: 0;
}

.login-code-row button {
  min-width: 112px;
  margin-top: 0;
  white-space: nowrap;
}

.login-password-field {
  position: relative;
}

.login-password-field input {
  padding-right: 44px;
}

.password-eye-button {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.password-eye-button:hover,
.password-eye-button:focus-visible {
  background: #eef4ff;
  color: var(--primary-strong);
}

.password-eye-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-button .eye-off-slash {
  display: none;
}

.password-eye-button.is-visible .eye-off-slash {
  display: block;
}

.login-error { margin-top: 14px; padding: 9px 10px; border: 1px solid #fecaca; border-radius: 6px; background: #fef2f2; color: #b91c1c; font-size: 0.76rem; }
.login-footnote { margin: 12px 0 0; color: #64748b; font-size: 0.68rem; text-align: center; }

.login-form .login-mode-switch {
  justify-self: center;
  width: auto;
  min-height: 34px;
  margin: -5px auto 0;
  padding: 4px 7px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #526b86;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #9aaec4;
  text-underline-offset: 3px;
}

.login-form .login-mode-switch:hover {
  color: var(--primary-strong);
  text-decoration-color: currentColor;
}

.login-form .login-mode-switch:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.login-message {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.login-message.error { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.login-message.success { border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; }

.registration-notice {
  width: min(430px, calc(100vw - 28px));
  padding: 26px;
  border: 1px solid #b8cee8;
  border-radius: 10px;
  background: #f8fbff;
  color: #172b43;
  box-shadow: 0 26px 80px rgba(8, 15, 28, 0.38);
}

.registration-notice::backdrop {
  background: rgba(8, 15, 28, 0.68);
  backdrop-filter: blur(3px);
}

.registration-notice-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 9px;
  background: #175cd3;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.registration-notice-kicker {
  color: #2470b8;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.registration-notice h2 {
  margin: 3px 0 9px;
  color: #102943;
  font-size: 1.24rem;
}

.registration-notice p {
  margin: 0;
  color: #51687f;
  font-size: 0.78rem;
  line-height: 1.7;
}

.registration-notice dl {
  display: grid;
  gap: 1px;
  margin: 16px 0;
  overflow: hidden;
  border: 1px solid #d8e4f1;
  border-radius: 7px;
  background: #d8e4f1;
}

.registration-notice dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  background: #fff;
}

.registration-notice dt {
  color: #718399;
  font-size: 0.7rem;
}

.registration-notice dd {
  margin: 0;
  color: #173a5f;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.registration-notice button {
  width: 100%;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.76rem;
  box-shadow: none;
}

@media (max-width: 650px) {
  .login-page { padding: 12px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { padding: 22px; border-right: 0; border-bottom: 1px solid #28374b; }
  .login-brand > span { margin-top: 10px; }
  .login-brand p { margin-bottom: 0; }
  .login-security { display: none; }
  .login-panel { min-height: 392px; padding: 22px; }
  .login-code-row { grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
  .login-code-row button { width: 112px; }
  .registration-notice { padding: 22px; }
  .login-copyright { margin-top: 10px; }
}

@media (max-width: 360px) {
  .login-copyright {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
}
