:root {
  --ink: #172238;
  --muted: #7b8595;
  --paper: #f4efe6;
  --surface: #fffdf8;
  --line: #e4dccf;
  --orange: #ed6a3a;
  --orange-dark: #c84f23;
  --navy: #132037;
  --red: #c54a44;
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

.login-shell {
  width: min(1100px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  gap: 18px;
}

.login-intro,
.login-panel {
  border-radius: 30px;
}

.login-intro {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  color: #fff8ed;
  background:
    radial-gradient(circle at 85% 12%, rgba(237, 106, 58, 0.24), transparent 20rem),
    linear-gradient(140deg, #111b2e, #1d304d);
  box-shadow: 0 25px 65px rgba(19, 32, 55, 0.16);
}

.login-intro::before {
  content: "";
  position: absolute;
  right: -155px;
  bottom: -205px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(255, 255, 255, 0.02),
    0 0 0 106px rgba(255, 255, 255, 0.015);
}

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

.login-logo {
  width: 45px;
  height: 45px;
  padding: 9px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 8px 7px 8px;
  align-items: end;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.07);
}

.login-logo i {
  height: 12px;
  border-radius: 3px;
  background: #fff6e8;
}

.login-logo i:nth-child(2) {
  height: 24px;
  background: var(--orange);
}

.login-logo i:nth-child(3) {
  height: 17px;
}

.login-brand > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-brand strong {
  font-size: 17px;
}

.login-brand span {
  color: rgba(255, 248, 237, 0.54);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.intro-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.login-intro .eyebrow {
  color: #f3a184;
}

.intro-copy h1 {
  margin: 18px 0 15px;
  font-size: clamp(45px, 6vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.intro-copy p {
  max-width: 430px;
  margin: 0;
  color: rgba(255, 248, 237, 0.6);
  font-size: 12px;
  line-height: 1.9;
}

.security-note {
  position: relative;
  z-index: 1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.security-note span {
  color: #f3a184;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.security-note p {
  margin: 7px 0 0;
  color: rgba(255, 248, 237, 0.48);
  font-size: 10px;
  line-height: 1.8;
}

.login-panel {
  padding: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.85);
}

.login-card {
  width: min(360px, 100%);
}

.login-card h2 {
  margin: 10px 0 7px;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.login-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 11px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

label > span {
  color: #5e6878;
  font-size: 10px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--ink);
  background: #fbf8f2;
  outline: none;
}

input:focus {
  border-color: #e3a089;
  box-shadow: 0 0 0 3px rgba(237, 106, 58, 0.1);
}

.login-button {
  height: 50px;
  margin-top: 3px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(125deg, #ed6a3a, #d35427);
  box-shadow: 0 11px 25px rgba(211, 84, 39, 0.22);
  font-size: 13px;
  font-weight: 800;
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid #efcfcc;
  border-radius: 9px;
  color: var(--red);
  background: #fcf1f0;
  font-size: 10px;
  line-height: 1.5;
}

.setup-notice {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ead7ba;
  border-radius: 12px;
  color: #876d45;
  background: #fbf3e5;
}

.setup-notice strong {
  font-size: 11px;
}

.setup-notice p {
  margin: 6px 0 8px;
  font-size: 9px;
}

.setup-notice code {
  display: block;
  overflow-x: auto;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--ink);
  background: #fffdf8;
  font: 10px/1.5 Consolas, monospace;
  white-space: nowrap;
}

.login-card footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.login-card footer a {
  color: var(--orange-dark);
  text-decoration: none;
}

@media (max-width: 820px) {
  .login-shell {
    width: min(100% - 24px, 540px);
    grid-template-columns: 1fr;
    padding: 12px 0 24px;
  }

  .login-intro {
    min-height: 310px;
    padding: 27px;
  }

  .intro-copy {
    margin: 35px 0;
  }

  .intro-copy h1 {
    font-size: 41px;
  }

  .security-note {
    display: none;
  }

  .login-panel {
    padding: 35px 25px;
  }
}
