/* =========================================================
   战备商行 · 登录页
   ========================================================= */

:root {
  --l-bg: #eef4fb;
  --l-surface: #ffffff;
  --l-soft: #f7fbff;
  --l-ink: #0d1b32;
  --l-text: #3f4f65;
  --l-muted: #8795a8;
  --l-line: #e2ebf5;
  --l-line-strong: #d5e2f0;
  --l-blue: #2d6cff;
  --l-navy: #0a1b36;
  --l-orange: #ef8a24;
  --l-green: #1ca77b;
  --l-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --l-display: "Bahnschrift", "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  margin: 0;
  color: var(--l-text);
  background:
    radial-gradient(circle at 78% 12%, rgba(45, 108, 255, 0.05), transparent 25%),
    var(--l-bg);
  font-family: var(--l-sans);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.login-header {
  display: flex;
  width: min(1220px, calc(100% - 64px));
  height: 64px;
  align-items: center;
  gap: 36px;
  margin: 0 auto;
  border-bottom: 1px solid var(--l-line);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--l-navy);
  flex: 0 0 auto;
}

.login-brand i {
  width: 14px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.8;
}

.login-brand strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.login-nav {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 32px;
}

.login-nav a {
  color: #526175;
  font-size: 12px;
}

.login-nav a:hover {
  color: var(--l-blue);
}

.login-back {
  margin-left: auto;
  color: #7f8ea0;
  font-size: 10px;
}

.login-back:hover {
  color: var(--l-blue);
}

.login-main {
  display: grid;
  width: min(1030px, calc(100% - 64px));
  grid-template-columns: 390px minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
  margin: 54px auto 40px;
}

.login-card {
  padding: 28px 28px 24px;
  border: 1px solid var(--l-line);
  border-radius: 9px;
  background: var(--l-surface);
  box-shadow: 0 12px 34px rgba(31, 59, 96, 0.07);
}

.login-card__head {
  margin-bottom: 20px;
}

.login-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border-radius: 9px;
  background: #eaf2ff;
  color: var(--l-blue);
}

.login-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-card h1 {
  margin: 0;
  color: var(--l-ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.login-card__head p {
  margin: 4px 0 0;
  color: var(--l-muted);
  font-size: 10px;
}

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

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

.login-field > span {
  color: #64758a;
  font-size: 10px;
  font-weight: 500;
}

.login-input-wrap {
  display: flex;
  height: 43px;
  align-items: center;
  border: 1px solid var(--l-line-strong);
  border-radius: 5px;
  background: var(--l-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-input-wrap:focus-within {
  border-color: var(--l-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45, 108, 255, 0.08);
}

.login-prefix {
  padding-left: 12px;
  color: #8b99aa;
  font-family: var(--l-display);
  font-size: 11px;
  border-right: 1px solid #e0e9f3;
  line-height: 1;
}

.login-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--l-ink);
  font-size: 12px;
}

.login-input-wrap input::placeholder {
  color: #aab6c4;
}

.login-input-wrap--code input {
  padding-right: 4px;
}

.login-input-wrap--code button {
  height: 29px;
  flex: 0 0 auto;
  padding: 0 10px;
  border-left: 1px solid var(--l-line);
  color: var(--l-blue);
  font-size: 9.5px;
  white-space: nowrap;
}

.login-input-wrap--code button:disabled {
  color: #9eabba;
  cursor: default;
}

.login-dev {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #e7d8b8;
  border-radius: 4px;
  background: #fffbf1;
  color: #a47b31;
  font-size: 9px;
  line-height: 1.6;
}

.login-error {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #f1cccc;
  border-radius: 4px;
  background: #fff5f5;
  color: #bd5656;
  font-size: 9px;
  line-height: 1.6;
}

.login-submit {
  height: 43px;
  margin-top: 2px;
  border-radius: 5px;
  background: var(--l-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 5px 13px rgba(10, 27, 54, 0.15);
  transition: background 0.2s, opacity 0.2s;
}

.login-submit:hover {
  background: #12294c;
}

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

.login-agree {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #8c9aaa;
  font-size: 8.5px;
  line-height: 1.7;
  cursor: pointer;
}

.login-agree input {
  width: 12px;
  height: 12px;
  margin: 1px 0 0;
  accent-color: var(--l-blue);
}

.login-agree a {
  color: var(--l-blue);
}

.login-tip {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid var(--l-line);
}

.login-tip strong {
  color: #61748a;
  font-size: 9.5px;
  font-weight: 500;
}

.login-tip span {
  color: #9aa8b7;
  font-size: 8.5px;
}

.login-aside {
  position: relative;
  overflow: hidden;
  padding: 42px 40px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 86% 20%, rgba(255, 165, 98, 0.18), transparent 28%),
    linear-gradient(145deg, #102b32, #071219 70%);
  color: #d9e8e8;
  box-shadow: 0 12px 34px rgba(13, 36, 44, 0.1);
}

.login-aside::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -100px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(178, 217, 208, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(178, 217, 208, 0.04), 0 0 0 84px rgba(178, 217, 208, 0.03);
}

.login-aside__kicker {
  position: relative;
  z-index: 2;
  color: #88a9a5;
  font-family: var(--l-display);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.login-aside h2 {
  position: relative;
  z-index: 2;
  margin: 22px 0 0;
  color: #f1f8f6;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.04em;
}

.login-aside > p {
  position: relative;
  z-index: 2;
  max-width: 350px;
  margin: 14px 0 0;
  color: #8fa9a7;
  font-size: 10px;
  line-height: 1.9;
}

.login-aside__facts {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: #b6cbc7;
  font-size: 9px;
}

.login-aside__facts span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.login-aside__facts b {
  color: #e8b77d;
  font-family: var(--l-display);
  font-size: 8px;
  font-weight: 600;
}

.login-aside__art {
  position: absolute;
  right: 20px;
  bottom: 15px;
  left: 20px;
  opacity: 0.84;
}

.login-aside__art svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.login-footer {
  padding: 0 20px 22px;
  color: #9aa8b8;
  font-size: 8px;
  text-align: center;
}

@media (max-width: 880px) {
  .login-main {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-top: 30px;
  }

  .login-aside {
    display: none;
  }

  .login-header {
    width: calc(100% - 32px);
    gap: 20px;
  }

  .login-nav {
    display: none;
  }

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

@media (max-width: 460px) {
  .login-header {
    height: 58px;
  }

  .login-main {
    width: calc(100% - 20px);
    margin-top: 18px;
  }

  .login-card {
    padding: 22px 17px 18px;
  }

  .login-card h1 {
    font-size: 21px;
  }

  .login-back {
    font-size: 9px;
  }
}
