/* web/signin.css — the door, v4: the same glass and gold as the watch; the art fills the left, the card floats right.
   External on purpose — the Worker's CSP allows no inline style. */
.door-body { overflow: hidden; }
.door-art { opacity: .8; filter: saturate(1.15); }
.door { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 480px); align-items: center; gap: 40px; padding: 40px clamp(20px, 6vw, 90px); }
.door-side { display: grid; align-content: center; }
.door-copy { display: grid; gap: 18px; max-width: 560px; animation: rise .9s var(--ease) both; }
.door-copy h1 { margin: 0; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.02em; font-weight: 600; color: var(--ink); text-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.door-copy h1 em { font-style: normal; color: var(--gold); }
.door-copy p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46ch; }
.door-facts { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.door-facts li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 140px; }
.door-facts b { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.door-facts span { font-size: 12px; color: var(--muted); }

.door-card { display: grid; gap: 18px; padding: 30px 28px; animation: rise 1s var(--ease) .12s both; }
.door-card .brand { display: flex; align-items: center; gap: 10px; }
.door-card .caption { margin: -6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.door-card .caption.small { margin: 0; font-size: 12px; color: var(--dim); }
.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(228, 196, 106, .14); background: rgba(255, 255, 255, .07); }
.input.code { letter-spacing: .5em; font-size: 22px; text-align: center; }
.btn { position: relative; overflow: hidden; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font-weight: 500; background: rgba(255, 255, 255, .04); transition: transform .35s var(--ease), border-color .25s ease, box-shadow .35s var(--ease), background .25s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { background: linear-gradient(180deg, #F0D683, var(--gold) 55%, #CDA94F); color: #17140A; border-color: rgba(228, 196, 106, .8); font-weight: 600; box-shadow: 0 14px 34px -14px rgba(228, 196, 106, .7), 0 1px 0 rgba(255, 255, 255, .35) inset; }
.btn-primary:hover { background: linear-gradient(180deg, #F6DF93, #EBCD75 55%, #D3B05A); box-shadow: 0 18px 40px -14px rgba(228, 196, 106, .9), 0 1px 0 rgba(255, 255, 255, .4) inset; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sheen 5s ease-in-out infinite; }
@keyframes sheen { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-block { width: 100%; } .cluster { display: flex; gap: 10px; flex-wrap: wrap; }
details summary { cursor: pointer; color: var(--muted); font-size: 13px; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
details summary::before { content: ''; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .3s var(--ease); }
details[open] summary::before { transform: rotate(45deg); }
details summary::-webkit-details-marker { display: none; }
details .stack { margin-top: 12px; }
.line { margin: 0; display: flex; gap: 8px; align-items: center; min-height: 20px; font-size: 13px; color: var(--muted); }
.line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); flex: none; transition: background .3s ease, box-shadow .3s ease; }
.line[data-state="ok"] .dot { background: var(--green); box-shadow: 0 0 10px rgba(91, 203, 154, .7); } .line[data-state="error"] .dot { background: var(--red); box-shadow: 0 0 10px rgba(224, 90, 87, .7); } .line[data-state="wait"] .dot { background: var(--amber); animation: blink 1s steps(2) infinite; }
.foot-note { margin: 0; color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 900px) {
  .door { grid-template-columns: 1fr; gap: 22px; padding: 28px 16px 40px; align-content: start; min-height: 100svh; }
  .door-side { padding-top: 8px; }
  .door-copy h1 { font-size: 30px; }
  .door-facts { display: none; }
  .door-card { padding: 24px 20px; }
  .door-art { opacity: .55; }
}
