@font-face {
  font-family: Inter;
  src: url("/visual/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/visual/display.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1b1915;
  --muted: #645f56;
  --line: #d4cfc5;
  --gold: #c99c39;
  --display: "Bricolage Grotesque", Inter, sans-serif;
}
body[data-mono] {
  margin: 0;
  min-height: 100vh;
  background: #faf9f6;
  color: var(--ink);
  font: 400 1rem/1.5 Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.login-page { width: min(100%, 1440px); padding: 0 clamp(24px, 4.8vw, 76px) clamp(24px, 4vw, 64px); margin: 0 auto; }
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: clamp(76px, 12vh, 108px); }
.brand { display: flex; align-items: center; gap: 7px; font: 780 clamp(22px, 2.3vw, 32px)/1 var(--display); letter-spacing: -.066em; white-space: nowrap; }
.brand img { display: block; width: 1.1em; height: 1.1em; }
.brand-light { font-weight: 430; }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #dcd8d0; border-radius: 10px; background: #fff; }
.language-switch .icon { margin: 0 3px 0 7px; width: 15px; height: 15px; color: #656159; }
.language-switch button { border: 0; background: transparent; border-radius: 7px; min-height: 32px; padding: 3px 10px; font-size: .76rem; font-weight: 610; color: var(--muted); }
.language-switch button[aria-pressed=true] { background: #eeece6; box-shadow: inset 0 0 0 1px #e1ddd2; color: var(--ink); }
.language-switch abbr { display: none; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid #e1dcd2; border-radius: 26px; background: #fff; padding: 9px; }
.form-pane { display: flex; align-items: center; justify-content: center; min-width: 0; padding: clamp(32px, 4.6vw, 68px); }
.form-content { width: 100%; max-width: 404px; }
.workspace-label { display: flex; align-items: center; gap: 8px; color: #6a6355; font-size: .78rem; font-weight: 590; }
.workspace-label .icon { width: 17px; height: 17px; }
h1 { margin: 17px 0 10px; font: 690 clamp(2.55rem, 3.9vw, 3.6rem)/1.03 var(--display); letter-spacing: -.055em; text-wrap: balance; }
.intro { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; text-wrap: pretty; }
#auth-form { margin: clamp(24px, 3.3vh, 36px) 0 0; display: grid; gap: 17px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-size: .85rem; font-weight: 630; }
.input-wrap { display: flex; position: relative; align-items: center; }
.input-wrap .mu-input { width: 100%; min-width: 0; height: 49px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px 10px 42px; background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.3; appearance: none; }
.input-wrap .mu-input::placeholder { color: #79736a; font-size: .88rem; opacity: 1; }
.input-wrap .mu-input:is(#password,#confirm-password) { padding-right: 46px; }
.input-wrap:focus-within .mu-input { border-color: #8a702f; }
body :focus-visible { outline: 2px solid #8b6a24; outline-offset: 3px; }
.input-wrap .mu-input:focus { outline: 2px solid #be984a; outline-offset: 1px; }
.leading-icon { position: absolute; left: 14px; width: 17px; height: 17px; color: #7a7369; pointer-events: none; }
.reveal { position: absolute; right: 2px; width: 44px; height: 42px; display: grid; place-items: center; background: transparent; border: 0; border-radius: 7px; color: #69645c; }
.reveal:hover { color: var(--ink); background: #f3f1eb; }
.reveal .icon { width: 18px; height: 18px; }
.field-hint,.field-error { font-size: .76rem; line-height: 1.45; margin-top: 6px; }
.field-hint { color: var(--muted); }
.field-error { color: #92372c; }
.input-wrap .mu-input[aria-invalid=true] { border-color: #9c4232; }
.form-error { padding: 10px 12px; border-radius: 7px; border-left: 3px solid #a64f32; background: #fbf1eb; color: #713224; font-size: .85rem; }
.mu-btn.submit,.mu-btn.retry { border: 1px solid #23211d; border-radius: 9px; background: #25231f; color: #fff; padding: 12px 17px; min-height: 48px; font: 600 .9rem/1.4 Inter, sans-serif; cursor: pointer; }
.mu-btn.submit { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 5px; }
.mu-btn.retry { margin-top: 18px; }
.mu-btn.submit:hover,.mu-btn.retry:hover { background: #38352e; }
.submit .icon { width: 19px; height: 19px; transition: transform .15s ease; }
.submit:hover .icon { transform: translateX(2px); }
.spinner { width: 18px; height: 18px; border: 2px solid #ffffff59; border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.art-panel { position: relative; isolation: isolate; min-width: 0; min-height: clamp(550px, 73vh, 760px); overflow: hidden; border-radius: 18px; background: #201b13 url("/visual/sales-brass.webp") 55% center/cover no-repeat; }
.art-panel::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(120deg, #17140ddb 0, #17140d3d 42%, transparent 67%); }
.art-title { margin: clamp(32px, 4.4vw, 70px); font: 550 clamp(3.4rem, 6.8vw, 6.5rem)/.94 var(--display); letter-spacing: -.063em; color: #fff9ec; }
.art-title span:first-child { display: block; }
.gold-period { color: #e4b653; }
.skeleton { margin-top: 24px; }
.skeleton > div { display: grid; gap: 8px; }
.skeleton i,.skeleton b { display: block; border-radius: 7px; background: linear-gradient(100deg,#eeeae3 18%,#f7f5f0 50%,#eeeae3 82%); background-size: 250% 100%; animation: shimmer 1.8s ease infinite; }
.skeleton i { width: 24%; height: 13px; margin-top: 8px; }
.skeleton b { height: 48px; }
.skeleton b:last-child { margin-top: 16px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 840px) {
  .login-page { padding-inline: 24px; }
  .login-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .form-pane { padding: 33px 25px; }
  .art-title { margin: 28px; font-size: clamp(2.8rem, 6.5vw, 4.3rem); }
}
@media (max-width: 660px) {
  body[data-mono] { background: #fff; }
  .login-page { padding: 0 20px max(32px, env(safe-area-inset-bottom)); }
  .login-header { min-height: 72px; }
  .brand { font-size: 23px; }
  .language-switch button { min-width: 38px; min-height: 34px; padding-inline: 6px; }
  .language-switch .icon,.language-switch button span { display: none; }
  .language-switch abbr { display: inline; text-decoration: none; }
  .login-layout { display: flex; flex-direction: column; border: 0; border-radius: 0; padding: 0; gap: 28px; }
  .art-panel { order: -1; min-height: 0; height: clamp(92px, 15vh, 132px); border-radius: 13px; background-position: center 53%; }
  .art-title { margin: 0; position: absolute; inset: 0; display: flex; align-items: center; padding-inline: 20px; white-space: pre; font-size: clamp(1.75rem, 7.6vw, 2.5rem); }
  .art-title span:first-child { display: inline; margin-right: .2em; }
  .art-panel::before { background: linear-gradient(90deg,#17140dbe, #17140d44 66%,transparent); }
  .form-pane { padding: 0; }
  .form-content { max-width: 460px; }
  h1 { margin-top: 12px; }
}
@media (max-width: 350px) {
  .login-page { padding-inline: 15px; }
  .brand { font-size: 20px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
