:root {
  --login-ink: #0b1f33;
  --login-ink-soft: #173a57;
  --login-paper: #f2f5f7;
  --login-white: #ffffff;
  --login-gold: #d6a649;
  --login-safe: #0f8a83;
  --login-danger: #b94d37;
  --login-muted: #667786;
  --login-line: #d4dde4;
  --login-font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --login-data: "Bahnschrift SemiCondensed", "Arial Narrow", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--login-paper);
  color: var(--login-ink);
  font-family: var(--login-font);
}

button,
input {
  font: inherit;
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.45fr) minmax(380px, 0.75fr);
}

.login-story {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 78% 12%, rgba(214, 166, 73, 0.21), transparent 25%),
    linear-gradient(145deg, #071828 0%, #0c2d46 61%, #125166 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(28px, 4vw, 64px);
  position: relative;
}

.login-story::after {
  border: 1px solid rgba(214, 166, 73, 0.42);
  border-radius: 50%;
  content: "";
  height: min(48vw, 680px);
  position: absolute;
  right: -24vw;
  top: -23vw;
  width: min(48vw, 680px);
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.login-brand > span {
  align-items: center;
  background: var(--login-gold);
  border-radius: 12px 12px 12px 3px;
  color: var(--login-ink);
  display: inline-flex;
  font-size: 23px;
  font-weight: 800;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.login-brand div {
  display: grid;
  gap: 2px;
}

.login-brand b {
  font-size: 18px;
}

.login-brand small {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--login-data);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.login-story-copy {
  max-width: 780px;
  padding: 12vh 0 8vh;
  position: relative;
  z-index: 1;
}

.login-kicker,
.login-eyebrow {
  color: var(--login-gold);
  font-family: var(--login-data);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.login-story-copy h1 {
  font-size: clamp(38px, 5.1vw, 76px);
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 18px 0 25px;
  max-width: 820px;
}

.login-story-copy > p:last-child {
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.85;
  margin: 0;
  max-width: 620px;
}

.login-proof {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  max-width: 640px;
  padding-top: 22px;
  position: relative;
  z-index: 1;
}

.login-proof div {
  display: grid;
  gap: 5px;
}

.login-proof dt {
  color: var(--login-gold);
  font-family: var(--login-data);
  font-size: 27px;
  font-weight: 700;
}

.login-proof dd {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  margin: 0;
}

.login-panel {
  align-items: center;
  background: var(--login-white);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 36px clamp(30px, 5vw, 76px);
}

.login-panel-inner {
  max-width: 420px;
  width: 100%;
}

.login-panel h2 {
  font-size: clamp(30px, 3vw, 42px);
  letter-spacing: -0.045em;
  margin: 12px 0 8px;
}

.login-intro {
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 34px;
}

#loginForm {
  display: grid;
  gap: 10px;
}

#loginForm > label {
  color: #465b6d;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

#loginForm input {
  background: #f6f8fa;
  border: 1px solid var(--login-line);
  border-radius: 10px;
  color: var(--login-ink);
  min-height: 48px;
  outline: 0;
  padding: 11px 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
  width: 100%;
}

.password-field {
  align-items: center;
  display: flex;
  position: relative;
}

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

.password-field button {
  background: transparent;
  border: 0;
  color: var(--login-safe);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 8px;
  position: absolute;
  right: 7px;
}

.login-submit {
  align-items: center;
  background: var(--login-ink);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  margin-top: 8px;
  min-height: 50px;
  padding: 12px 16px;
  transition: background-color 150ms ease, transform 150ms ease;
}

.login-submit i {
  color: var(--login-gold);
  font-size: 18px;
  font-style: normal;
}

.login-submit:hover:not(:disabled) {
  background: var(--login-ink-soft);
  transform: translateY(-1px);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.64;
}

.login-status {
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  min-height: 0;
}

.login-status:not(:empty) {
  border: 1px solid var(--login-line);
  margin-top: 4px;
  padding: 9px 11px;
}

.login-status.is-error {
  background: #fbebe7;
  border-color: #efb8aa;
  color: #873522;
}

.login-status.is-success {
  background: #e1f2ef;
  border-color: #abd9d3;
  color: #075f59;
}

.login-security {
  border-top: 1px solid var(--login-line);
  color: var(--login-muted);
  font-size: 10px;
  line-height: 1.7;
  margin: 30px 0 0;
  padding-top: 18px;
}

:focus-visible {
  outline: 3px solid rgba(214, 166, 73, 0.48);
  outline-offset: 3px;
}

#loginForm input:focus {
  border-color: var(--login-safe);
  box-shadow: 0 0 0 3px rgba(15, 138, 131, 0.1);
}

@media (max-width: 760px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
    padding: 28px 24px 34px;
  }

  .login-story-copy {
    padding: 58px 0 45px;
  }

  .login-story-copy h1 {
    font-size: clamp(34px, 10vw, 54px);
  }

  .login-panel {
    min-height: auto;
    padding: 48px 24px 60px;
  }
}

@media (max-width: 420px) {
  .login-proof {
    gap: 14px;
  }

  .login-proof dt {
    font-size: 22px;
  }

  .login-story-copy {
    padding: 46px 0 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
.registration-panel {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(12, 35, 53, 0.14);
}

.registration-panel summary {
  color: #0d6170;
  cursor: pointer;
  font-weight: 700;
}

.registration-panel > p {
  color: #66747d;
  font-size: 13px;
  line-height: 1.6;
}

.registration-panel form {
  display: grid;
  gap: 10px;
}
