/* Shared login, registration, activation and password recovery presentation. */
html { min-height: 100%; }
body { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px; background: var(--canvas); }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(#0d141ad9, #0d141af0), url('/static/background.jpg?v=14.12') center / cover; }
.login-shell { width: min(100%, 1100px); min-height: 690px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 25px 80px #0004; }
.login-side { padding: 48px clamp(28px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.wordmark { display: flex; align-items: center; gap: 11px; margin-bottom: 50px; }
.mark { display: grid; place-items: center; width: 30px; height: 36px; color: var(--accent); flex: none; }
.mark svg { width: 30px; height: 30px; }
.mark-label { font-size: 17px; font-weight: 650; letter-spacing: -.6px; }
.mark-label em { font-style: normal; color: var(--accent); }
.mark-label strong { font-weight: inherit; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: .16em; color: var(--subtle); margin-bottom: 14px; }
h1 { margin: 0 0 18px; font-size: clamp(31px, 3.3vw, 44px); letter-spacing: -1.6px; font-weight: 500; line-height: 1.12; }
h1 span { color: var(--accent); }
p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0 0 25px; }
form { margin: 0; }
label { display: block; font-size: 12px; font-weight: 550; margin: 17px 0 8px; color: var(--text); }
input { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #485b66; border-radius: 7px; color: var(--text); background: var(--canvas); font-size: 16px; }
input:focus { border-color: var(--accent); }
button { width: 100%; min-height: 48px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 7px; font-size: 13px; font-weight: 650; padding: 13px; margin-top: 25px; }
button:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
#error { color: var(--danger); font-size: 12px; margin: 15px 0 0; line-height: 1.65; }
#error:empty, #message:empty { margin: 0; }
#message { color: var(--accent); white-space: pre-line; margin-top: 18px; border-left: 2px solid var(--accent); padding-left: 14px; }
#message:empty { border: 0; padding: 0; }
.help { color: var(--subtle); font-size: 11px; margin: 8px 0 0; line-height: 1.6; }
.account-links { display: flex; flex-direction: column; gap: 13px; font-size: 12px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-links span { display: flex; flex-direction: column; gap: 13px; }
.account-links a { color: var(--muted); text-decoration: none; width: fit-content; padding: 3px 0; text-underline-offset: 4px; }
.account-links a:hover { color: var(--accent); text-decoration: underline; }
#registerLink { color: var(--accent); font-weight: 600; }
.login-art { position: relative; min-width: 0; background: #13222b url('/static/premium-portrait.jpg?v=14.12') center / cover; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 40px; }
.login-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,#0d1b2255 0%,transparent 40%,#0a171ee8 78%); }
.art-index { position: relative; z-index: 1; color: #c2d8dc; font-size: 10px; letter-spacing: .17em; }
.art-caption { position: relative; z-index: 1; margin-top: 280px; }
.art-caption .small { font-size: 9px; letter-spacing: .14em; color: var(--accent); font-weight: 600; }
.art-caption h2 { font-size: 37px; font-weight: 500; line-height: 1.14; letter-spacing: -1.2px; margin: 18px 0 14px; }
.art-caption p { color: #bbced3; margin: 0; font-size: 12px; }
.art-points { display: flex; flex-wrap: wrap; gap: 9px 15px; padding-top: 24px; margin-top: 28px; border-top: 1px solid #bddedc40; font-size: 10px; color: #cadbdd; }
.account-shell { width: min(100%, 590px); min-height: 0; display: block; border-top: 3px solid #72bdae; }
.account-shell .login-side { padding: 36px clamp(24px, 5vw, 54px); }
.account-shell .wordmark { margin-bottom: 30px; }
.account-shell h1 { font-size: 32px; letter-spacing: -1px; }
.account-shell #intro:empty { display: none; }
@media (max-width: 760px) {
  body { padding: 0; display: block; }
  .login-shell { border: 0; border-radius: 0; min-height: 100dvh; display: block; }
  .login-side { padding: 36px clamp(24px, 8vw, 90px); }
  .wordmark { margin-bottom: 42px; }
  h1 { font-size: 38px; }
  .login-art { min-height: 210px; padding: 28px clamp(24px, 8vw, 90px); border-left: 0; border-top: 1px solid var(--line); background-image: url('/static/premium-scene.jpg?v=14.12'); background-position: center 65%; }
  .login-art::before { background: linear-gradient(90deg,#0a171eee,#0a171e44); }
  .art-index { display: none; }
  .art-caption { margin-top: 0; }
  .art-caption h2 { font-size: 27px; margin: 12px 0; }
  .art-points { margin-top: 18px; padding-top: 14px; }
  .account-shell { max-width: none; }
  .account-shell .login-side { max-width: 590px; margin: auto; padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
