.auth { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 26px; padding: 40px 18px; }
.auth > .brand { font-size: 22px; }
.auth > .brand img { width: 36px; height: 36px; }
.card { width: min(440px, 100%); padding: 30px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--stroke); margin-bottom: 26px; }
.tabs button { border: 0; background: none; padding: 9px; border-radius: 9px; color: var(--mute); cursor: pointer; font-size: 14px; }
.tabs button.on { background: var(--glass-2); color: var(--text); box-shadow: var(--hi), 0 0 0 1px var(--stroke-2); }
.card h1 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 4px; }
.sub { color: var(--mute); margin: 0 0 22px; }
form { display: grid; gap: 16px; }
.pw { position: relative; display: block; }
.pw .input { padding-right: 66px; }
.show { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: var(--glass-2); color: var(--mute); font-size: 12px; padding: 5px 9px; border-radius: 7px; cursor: pointer; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: -6px; }
.meter i { height: 4px; border-radius: 2px; background: var(--stroke-2); transition: background .2s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--err); }
.meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.meter[data-s="3"] i:nth-child(-n+3) { background: #9be86b; }
.meter[data-s="4"] i { background: var(--acc); }
form .btn { width: 100%; margin-top: 4px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.cap-box { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); }
.cap-board { position: relative; width: 100%; max-width: 320px; aspect-ratio: 320 / 170; border-radius: 8px; overflow: hidden; background: var(--bg-3); user-select: none; }
.cap-board img { display: block; width: 100%; height: 100%; pointer-events: none; }
.cap-board .cap-piece { position: absolute; left: 0; top: 0; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.cap-track { position: relative; height: 42px; max-width: 320px; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line-2); touch-action: none; }
.cap-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 10px; background: rgba(255, 106, 43, .22); }
form .cap-handle { position: absolute; top: 2px; left: 0; width: 46px; height: 36px; margin: 0; border-radius: 8px; border: 0; background: var(--paper); color: var(--paper-ink); font: 700 18px var(--body); cursor: grab; touch-action: none; }
form .cap-handle:active { cursor: grabbing; }
form .cap-handle:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.cap-box.passed .cap-handle { background: var(--acc); color: var(--acc-ink); }
.cap-box.failed .cap-track { border-color: var(--err); }
.cap-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 320px; }
.cap-foot .btn { width: auto; margin: 0; }
.cap-msg { font-size: 13px; color: var(--err); }
.cap-msg.ok { color: var(--acc); }
.small { font-size: 13.5px; color: var(--dim); margin: 18px 0 0; text-align: center; }
.small a { color: var(--mute); }
.legal { font-size: 12.5px; color: var(--dim); margin: 0; }
