:root {
  color-scheme: dark;
  font: 16px/1.6 Inter, "Microsoft YaHei UI", "PingFang SC", sans-serif;
  color: #f0f2fc;
  background: #0d102a;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .66; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #bdf8ff; outline-offset: 3px; }

.auth-header {
  margin: 0 auto;
  width: min(100% - 64px, 1240px);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.brand img { border-radius: 9px; }
.brand b { font-size: 15px; letter-spacing: -.2px; margin-left: 3px; color: #aeb7db; }
.home-link { color: #b7bdd9; font-size: 14px; }
.home-link span { margin-left: 5px; color: #bdf8ff; }
.home-link:hover { color: white; }

.auth-layout {
  margin: 16px auto 40px;
  width: min(100% - 64px, 1240px);
  min-height: min(720px, calc(100vh - 136px));
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  border: 1px solid #262e4a;
  border-radius: 28px;
  overflow: hidden;
  background: #121831;
}

.auth-visual {
  display: flex;
  align-items: flex-end;
  min-height: 590px;
  padding: clamp(32px, 5vw, 72px);
  border-right: 1px solid #2a3151;
  background:
    linear-gradient(0deg, #0d1029 4%, transparent 71%),
    url("/assets/hero-suyu.webp") 70% center / cover no-repeat,
    radial-gradient(ellipse at 75% 30%, #393369, transparent 63%), #141a3e;
}

.auth-caption { position: relative; }
.visual-mark { margin: 0 0 17px; display: flex; align-items: center; gap: 10px; color: #bdf8ff; font-size: 11px; font-weight: 700; letter-spacing: .23em; }
.visual-mark span { width: 7px; height: 7px; border-radius: 50%; background: #bdf8ff; box-shadow: 0 0 15px #bdf8ff; }
.auth-caption h2 { margin: 0 0 10px; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.2; letter-spacing: -.045em; }
.auth-caption > p:last-child { margin: 0; color: #bdc5e1; font-size: 14px; }

.auth-panel { display: grid; place-items: center; padding: 50px clamp(24px, 4.5vw, 68px); }
.auth-card { width: min(100%, 390px); }
.auth-card h1 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.25; letter-spacing: -.035em; }
.auth-description { margin: 10px 0 30px; color: #aeb8d9; font-size: 14px; }
.auth-card label { display: block; margin: 17px 0 7px; font-size: 14px; font-weight: 600; }
.auth-card input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #3c4666; border-radius: 9px; color: #edf1fc; background: #0e142b; }
.auth-card input::placeholder { color: #8b97b8; }
.auth-card input:focus-visible { outline-offset: 1px; outline-color: #a4a8ff; }

.code-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.secondary-action { background: #171e3a; color: #e1e5fc; border: 1px solid #404a70; border-radius: 9px; padding: 0 12px; font-size: 13px; }
.secondary-action:hover:not(:disabled) { background: #242c51; border-color: #727aca; }
.forgot-row { margin-top: 8px; text-align: right; }
.text-action { color: #bdc1ff; border: 0; background: transparent; padding: 2px 0; font-size: 14px; }
.text-action:hover { text-decoration: underline; }
.primary-action { width: 100%; border: 0; border-radius: 10px; min-height: 48px; margin-top: 24px; padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; color: #10132d; background: #acabff; font-weight: 700; }
.primary-action:hover:not(:disabled) { background: #c2c1ff; }
.primary-action span, .demo-action span { font-size: 19px; font-weight: 400; }
.form-message { margin: 14px 0 -5px; color: #ffd0ce; font-size: 13px; }
.form-message.success { color: #a6efd1; }
.mode-links { margin-top: 16px; text-align: center; color: #aeb8d9; font-size: 14px; }
.demo-section { border-top: 1px solid #303956; margin-top: 26px; padding-top: 20px; }
.demo-action { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: space-between; text-align: left; }
.demo-section p { color: #aeb8d9; font-size: 12px; margin: 8px 0 0; }

@media (max-width: 740px) {
  .auth-header, .auth-layout { width: calc(100% - 32px); }
  .auth-header { min-height: 66px; }
  .auth-layout { display: block; margin-top: 8px; min-height: 0; border-radius: 18px; }
  .auth-visual { display: none; }
  .auth-panel { padding-block: 36px; }
}
