:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #232634;
  --muted: #666972;
  --accent: #424ca4;
  font-family: "DM Sans", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body, h1, p, figure { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
.login-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(14px, 1.7vw, 30px);
}
.login-panel { display: flex; flex-direction: column; padding: 0 clamp(24px, 5.9vw, 130px) 0 clamp(18px, 4.9vw, 100px); }
.identity { display: flex; align-items: center; gap: 10px; margin-top: clamp(14px, 3.2vh, 45px); }
.identity strong { font-size: 22px; font-weight: 650; letter-spacing: -1px; }
.brand-mark { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 2px; height: 34px; width: 34px; border-radius: 9px; background: var(--accent); }
.brand-mark i { width: 3px; background: white; border-radius: 1px; transform: skewX(-18deg); }
.brand-mark i:first-child { height: 8px; margin-top: 6px; }
.brand-mark i:nth-child(2) { height: 14px; }
.brand-mark i:last-child { height: 20px; margin-top: -6px; }
.app-name { font-size: 13px; font-weight: 500; margin-left: 4px; padding-left: 14px; border-left: 1px solid #cdcfce; color: #5b6068; }
.login-form { margin: auto; padding: clamp(54px, 8vh, 115px) 0 clamp(70px, 13vh, 180px); width: 100%; max-width: 370px; }
h1 { font-size: clamp(33px, 3.2vw, 50px); line-height: 1.25; font-weight: 630; letter-spacing: -.065em; }
.intro { margin: 10px 0 37px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.login-form label { display: block; font-size: 13px; font-weight: 600; margin: 20px 0 9px; }
.login-form input:not([type=hidden]) { display: block; width: 100%; height: 48px; padding: 0 14px; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #cfd1d1; border-radius: 7px; }
.login-form input:focus-visible { outline: 2px solid #5864b9; outline-offset: 2px; }
.login-form button:focus-visible { outline: 2px solid #5864b9; outline-offset: 3px; }
.password-field { position: relative; }
.password-field input { padding-right: 48px !important; }
.visibility-toggle { position: absolute; right: 3px; top: 3px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #696e7a; }
.visibility-toggle:hover { color: var(--accent); background: #f1f1f5; }
.eye-icon { position: relative; height: 13px; width: 13px; border: 1.5px solid currentColor; border-radius: 75% 0 75% 0; transform: rotate(45deg); }
.eye-icon::before { content: ""; position: absolute; inset: 3px; background: currentColor; border-radius: 50%; }
.visibility-toggle[aria-pressed=true] .eye-icon::after { content: ""; position: absolute; left: 5px; top: -4px; width: 1.5px; height: 18px; background: currentColor; box-shadow: -1px 0 white; }
.login-error { margin: 13px 0 0; color: #973c35; font-size: 13px; line-height: 1.5; }
.login-error:empty { display: none; }
.submit-button { position: relative; margin-top: 26px; width: 100%; height: 48px; border: 1px solid #384394; border-radius: 7px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; }
.submit-button:hover { background: #36408e; }
.submit-button span { position: absolute; right: 16px; top: 50%; transform: translateY(-52%); font-size: 20px; line-height: 1; font-weight: 400; }
.scene { position: relative; overflow: hidden; border-radius: 12px; color: white; background: #49585c; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 52%; }
.scene::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent 15%, rgb(10 25 36 / 53%)); }
.scene figcaption { position: absolute; z-index: 1; left: clamp(24px, 3.6vw, 60px); bottom: clamp(26px, 5.4vh, 62px); font: italic clamp(30px, 3.5vw, 56px)/1.13 "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif; letter-spacing: -.045em; }
.scene figcaption span { display: block; margin-top: 9px; font: 500 12px/1.5 "PingFang SC", "Microsoft YaHei", sans-serif; letter-spacing: .06em; }
@media (min-width: 1550px) {
  .login-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 700px) {
  .login-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(155px, 1fr); gap: 8px; padding: 12px; }
  .login-panel { padding: 0 clamp(12px, 5vw, 34px); }
  .identity { margin-top: 12px; }
  .login-form { padding: clamp(42px, 9vh, 80px) 0 36px; }
  .intro { margin-bottom: 28px; }
  .scene { min-height: 155px; max-height: 340px; border-radius: 9px; }
  .scene img { object-position: center 61%; }
  .scene figcaption { left: 19px; bottom: 16px; font-size: 27px; }
  .scene figcaption span { font-size: 11px; margin-top: 3px; }
}
