:root {
  color-scheme: light;
  --ink: #2c342c;
  --muted: #6e7667;
  --accent: #bf593d;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Palatino Linotype", "Book Antiqua", "Noto Serif SC", "Songti SC", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; display: flex; flex-direction: column; color: #fffdf5; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 69% 14%, #d8c5a0 0%, transparent 46%), radial-gradient(ellipse at 10% 42%, #8c9a7b 0%, transparent 58%), linear-gradient(155deg, #bac2a7 0%, #71816a 44%, #253e35 86%); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #10251e55, #10251e0d 65%), linear-gradient(0deg, #10251e66, transparent 40%); }
.backdrop img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; }
.backdrop img.is-loaded { opacity: 1; }
.login-header, .login-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 5vw, 88px); }
.login-header { min-height: 112px; }
.wordmark { color: inherit; text-decoration: none; font-family: var(--serif); font-size: 33px; letter-spacing: -1.8px; }
.wordmark > span { display: inline-block; margin-left: 4px; vertical-align: top; padding-top: 5px; font: 11px var(--sans); letter-spacing: 0; }
.header-caption { font-size: 9px; letter-spacing: 2px; color: #fffdf5c9; }
.login-layout { flex: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 408px); align-items: center; gap: 64px; padding: 40px clamp(24px, 9vw, 156px) 70px clamp(24px, 8vw, 140px); }
.scene-copy { align-self: end; padding-bottom: 36px; animation: arrive .8s ease both; }
.scene-line { display: block; width: 36px; height: 1px; margin-bottom: 25px; background: #fffdf5b3; }
.scene-eyebrow { font-size: 9px; letter-spacing: 2.2px; line-height: 1.8; }
.scene-title { margin: 25px 0 24px; font-family: var(--serif); font-size: clamp(40px, 4.6vw, 68px); font-weight: 400; line-height: 1.5; letter-spacing: .08em; }
.scene-title > span { color: #e9c99a; }
.scene-description { font-size: 12px; line-height: 2; letter-spacing: .12em; color: #fffdf5d9; }
.login-card { width: 100%; padding: 40px 36px 0; color: var(--ink); border: 1px solid #fffdf599; border-radius: 18px; background: #faf9f0ed; box-shadow: 0 24px 80px #14271c24; backdrop-filter: blur(22px); animation: arrive .65s .1s ease both; }
.card-mark { display: flex; align-items: center; gap: 12px; }
.card-mark > svg { width: 38px; height: 38px; padding: 9px; border: 1px solid #d7dccd; border-radius: 11px; color: #5e7057; }
.card-mark > span { font-size: 9px; letter-spacing: 1.8px; color: #68735e; }
h1 { margin: 30px 0 12px; font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: .03em; }
h1 > span { color: var(--accent); }
.login-intro { margin: 0 0 32px; color: var(--muted); font-size: 12px; line-height: 1.8; }
label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; }
.password-field { position: relative; }
.password-field input { display: block; width: 100%; height: 51px; border: 1px solid #c9cfbf; border-radius: 7px; padding: 0 48px 0 15px; background: #fffef8b3; color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.password-field input::placeholder { color: #828878; font-size: 12px; }
.password-field input:focus { outline: none; border-color: #6c7f5e; box-shadow: 0 0 0 3px #6c7f5e1a; }
.password-field input[aria-invalid="true"] { border-color: #b64e38; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 40px; height: 41px; display: grid; place-items: center; border: 0; border-radius: 4px; background: none; color: #727b66; }
.password-toggle:hover { background: #75865d12; }
.eye-slash { display: none; }
.password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.login-error { min-height: 26px; margin: 7px 0 6px; color: #a13f2c; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.login-button { width: 100%; min-height: 49px; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 12px 16px; border: 1px solid #344731; border-radius: 7px; background: #344731; color: #fffef6; font-size: 13px; transition: background .2s, transform .2s; }
.login-button:hover { background: #43583c; }
.login-button:active { transform: translateY(1px); }
.login-button:disabled { opacity: .65; }
.login-button > svg { width: 18px; height: 18px; }
.login-duration { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 17px 0 30px; color: #67715e; font-size: 10px; }
.login-duration > svg { width: 13px; height: 13px; }
.card-footer { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 61px; border-top: 1px solid #d9ddce; color: #737c66; font-size: 10px; letter-spacing: .04em; }
.studio-dot { width: 5px; height: 5px; border-radius: 50%; background: #8b9b72; }
.login-footer { min-height: 70px; font-size: 10px; letter-spacing: .07em; color: #fffdf5cf; }
.footer-divider { margin: 0 12px; opacity: .5; }
.footer-note { font-size: 8px; letter-spacing: 1.8px; }
#shuffle-wallpaper { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 0 6px 12px; border: 0; border-radius: 4px; background: none; color: #fffdf5; font-size: 11px; letter-spacing: .06em; }
#shuffle-wallpaper > svg { width: 15px; height: 15px; }
#shuffle-wallpaper:hover { color: #f3d3a7; }
#shuffle-wallpaper:disabled { opacity: .55; }
@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .login-layout { grid-template-columns: minmax(0, 1fr) 430px; } .login-card { padding: 48px 44px 0; } }
@media (max-width: 900px) { .login-layout { gap: 36px; padding-right: 6vw; padding-left: 6vw; } .scene-title { font-size: 42px; } .scene-eyebrow { font-size: 8px; letter-spacing: 1px; } }
@media (max-width: 700px) { .login-header { min-height: 91px; } .wordmark { font-size: 29px; } .header-caption { font-size: 7px; letter-spacing: 1px; max-width: 120px; text-align: right; line-height: 1.8; } .login-layout { display: flex; justify-content: center; padding: 28px 22px 44px; } .scene-copy { display: none; } .login-card { max-width: 408px; padding: 35px 30px 0; } .login-footer { min-height: 65px; padding-bottom: 10px; font-size: 9px; } .footer-note { font-size: 7px; letter-spacing: .7px; } .footer-divider { margin: 0 6px; } }
@media (max-width: 350px) { .login-layout { padding: 18px 16px 30px; } .login-card { padding: 28px 23px 0; } .login-header, .login-footer { padding-left: 20px; padding-right: 20px; } .footer-note { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
