/* 登录首页独立样式，不影响已登录工作台。 */
:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2b303e;
  background: #fcfbfa;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: #fcfbfa; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #9c8cff; outline-offset: 4px; }
/* 左右两栏铺满视口：左侧作品图、右侧表单，不留灰底和卡片圆角。
   用 height 而非 min-height，保证任何窗口比例下都不会在底部漏出空白；
   窗口过矮时由右栏自己滚动（.login-panel），不裁掉表单。 */
.login-layout { width: 100%; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(390px, 1fr); height: 100vh; height: 100svh; }
.login-art { position: relative; isolation: isolate; overflow: hidden; min-width: 0; background: #172c49; color: #fff; }
.login-art::before { content: ""; position: absolute; z-index: -3; inset: 0; background: url('../img/login-hero-v1.webp') center / cover no-repeat; filter: blur(12px) brightness(.85); }
/* 插画铺满整个左栏（cover），不做「居中方形图 + 模糊底」的拼接，
   否则图片左右会出现两道竖向断口。图是 1:1，左栏比例 1.05~1.15，
   cover 只会裁掉上下 4%~7%，圆环、楼阁主体完整。
   ::before 只作为图片加载前的底色，加载完成后被完全遮住。 */
.login-art-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.login-art::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(9, 24, 48, .22), transparent 25%, transparent 62%, rgba(12, 29, 52, .58)); }
.login-brand { position: absolute; top: 42px; left: 5.8%; display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 8px 14px; }
.studio-mark { color: #7154ff; font-family: Arial, sans-serif; font-size: 56px; font-weight: 400; line-height: 1; }
.login-brand-name { font-size: clamp(22px, 2.3vw, 34px); font-weight: 650; letter-spacing: .04em; }
.login-brand-caption { grid-column: 1 / -1; font-size: 11px; letter-spacing: .38em; }
.login-art-samples { position: absolute; right: 5%; bottom: 8%; width: min(27%, 260px); height: 22%; max-height: 210px; pointer-events: none; }
.login-art-samples img { position: absolute; width: 58%; height: 85%; object-fit: cover; border: 1px solid #ffffff55; border-radius: 12px; box-shadow: 0 12px 32px #071c3d40; }
.login-sample-landscape { right: 0; top: -8%; transform: rotate(9deg); }
.login-sample-sculpture { bottom: 0; left: 0; }
.login-art-caption { position: absolute; bottom: 8.8%; left: 5.8%; right: 4%; }
.login-art-caption h1 { margin: 0 0 26px; font-size: clamp(28px, 3.1vw, 46px); letter-spacing: .02em; font-weight: 600; line-height: 1.35; text-shadow: 0 2px 20px rgba(6, 18, 36, .25); }
.login-mediums { display: flex; align-items: center; gap: 24px; font-size: 17px; }
.login-mediums > span { display: inline-flex; align-items: center; gap: 9px; }
.login-mediums > span + span { border-left: 1px solid #ffffff60; padding-left: 24px; }
.login-mediums svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.login-panel { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; padding: 54px clamp(28px, 4.6vw, 70px) 42px; background: #fcfbfa; overflow-y: auto; }
.login-card { width: 100%; max-width: 400px; margin: auto 0; padding: 22px 0 40px; }
.login-heading { text-align: center; margin-bottom: 42px; }
.login-heading .studio-mark { display: block; margin-bottom: 25px; font-size: 62px; }
.login-heading h2 { margin: 0 0 12px; font-size: 38px; font-weight: 650; letter-spacing: .03em; line-height: 1.3; }
.login-heading p { margin: 0; color: #777d8b; font-size: 17px; }
.login-field { margin-bottom: 25px; }
.login-field > label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 500; }
.login-field input { display: block; width: 100%; height: 54px; padding: 0 17px; color: #2b303e; background: #fbfaf9; border: 1px solid #dedde2; border-radius: 9px; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.login-field input::placeholder { color: #8b8f9b; opacity: 1; }
.login-field input:focus { border-color: #7154ff; outline: none; box-shadow: 0 0 0 3px #7154ff18; }
.login-password { position: relative; }
.login-password input { padding-right: 54px; }
.login-reveal { position: absolute; right: 3px; top: 3px; width: 48px; height: 48px; display: grid; place-items: center; color: #777d8b; background: transparent; border: 0; border-radius: 7px; }
.login-reveal:hover { color: #6547ef; background: #7154ff08; }
.login-reveal svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eye-slash { display: none; }
.login-reveal[aria-pressed="true"] .eye-slash { display: block; }
.login-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 28px; font-size: 14px; }
.login-remember { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.login-remember input { width: 17px; height: 17px; margin: 0; accent-color: #6848f5; }
.login-help-toggle { color: #6848f5; background: none; border: 0; padding: 8px 0 8px 8px; font-size: 14px; }
.login-help-toggle:hover { text-decoration: underline; }
.login-help { margin: -12px 0 20px; color: #636978; font-size: 13px; line-height: 1.7; }
.login-submit { width: 100%; display: flex; justify-content: center; align-items: center; gap: 14px; height: 56px; padding: 0 20px; border: 0; border-radius: 9px; background: #6848f5; color: #fff; font-size: 17px; font-weight: 500; transition: background .15s, box-shadow .15s; }
.login-submit:hover { background: #5938e6; box-shadow: 0 6px 18px #6848f526; }
.login-submit:active { background: #4d2dd0; }
.login-submit span { font-size: 23px; line-height: 1; }
.login-note { margin: 25px 0 0; padding-top: 21px; border-top: 1px solid #eeecef; color: #818593; font-size: 13px; text-align: center; }
.login-footer { margin-top: 18px; color: #898d99; font-size: 12px; text-align: center; }
.login-alert { padding: 12px 14px; margin-bottom: 22px; border: 1px solid #f2c7cb; border-radius: 8px; background: #fff1f2; color: #ac2638; font-size: 14px; line-height: 1.6; }
@media (min-width: 861px) and (max-height: 800px) {
  .login-panel { padding-top: 28px; }
  .login-heading { margin-bottom: 26px; }
  .login-heading .studio-mark { margin-bottom: 18px; font-size: 50px; }
  .login-heading h2 { font-size: 32px; }
  .login-card { padding-bottom: 15px; }
}
@media (max-width: 1100px) and (min-width: 861px) {
  .login-art-samples { display: none; }
  .login-art-caption h1 { font-size: 28px; }
  .login-mediums { gap: 16px; font-size: 14px; }
  .login-mediums > span + span { padding-left: 16px; }
}
@media (max-width: 860px) {
  .login-art-samples { display: none; }
  .login-layout { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 100svh; }
  .login-art { height: 270px; min-height: 0; }
  .login-art-image { object-position: center 44%; }
  .login-art::after { background: linear-gradient(180deg, #10233e40, #10233e10 40%, #10233eaa); }
  .login-brand { top: 22px; left: 24px; grid-template-columns: 25px 1fr; gap: 5px 9px; }
  .login-brand .studio-mark { font-size: 34px; }
  .login-brand-name { font-size: 21px; }
  .login-brand-caption { font-size: 8px; letter-spacing: .3em; }
  .login-art-caption { left: 24px; bottom: 24px; }
  .login-art-caption h1 { font-size: 27px; margin-bottom: 12px; }
  .login-mediums { font-size: 12px; gap: 15px; }
  .login-mediums svg { width: 18px; height: 18px; }
  .login-mediums > span { gap: 6px; }
  .login-mediums > span + span { padding-left: 15px; }
  .login-panel { padding: 34px 24px 22px; }
  .login-card { padding: 0; }
  .login-heading { margin-bottom: 28px; }
  .login-heading .studio-mark { display: none; }
  .login-heading h2 { font-size: 28px; margin-bottom: 8px; }
  .login-heading p { font-size: 14px; }
  .login-field { margin-bottom: 21px; }
  .login-options { margin-bottom: 20px; }
  .login-footer { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
