@import url('/vendor/@fontsource/ibm-plex-sans/400.css');
@import url('/vendor/@fontsource/ibm-plex-sans/500.css');
@import url('/vendor/@fontsource/ibm-plex-mono/400.css');

:root { --bg: #141415; --card: #19191b; --raised: #232325; --line: rgba(237,237,237,.11); --text: #ededed; --text2: #a1a1a6; --text3: #85858b; --accent: #d97757; --neg: #e5484d; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 400 14px/20px 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }
.auth { width: 100%; max-width: 380px; }
.auth.wide { max-width: 520px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 40px; }
.brand svg { width: 20px; height: 20px; color: var(--text); }
h1 { font-size: 24px; line-height: 30px; font-weight: 500; margin: 0 0 4px; }
.sub { color: var(--text3); margin: 0 0 24px; }
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text2); }
input { height: 44px; padding: 0 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; outline: none; transition: border-color .15s; }
input:focus { border-color: rgba(217,119,87,.55); }
input[name="code"] { font-family: 'IBM Plex Mono', monospace; letter-spacing: .08em; }
button { height: 44px; border: 0; border-radius: 8px; background: #ededed; color: #141415; font: inherit; font-weight: 500; cursor: pointer; transition: background-color .15s; }
button:hover { background: #fff; }
button:disabled { opacity: .5; }
.err { color: #f07a7d; margin: 0; min-height: 20px; font-size: 13px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.step > div:last-child { display: flex; flex-direction: column; gap: 12px; }
.step .n { width: 24px; height: 24px; border-radius: 6px; background: var(--raised); display: grid; place-items: center; font: 500 12px/1 'IBM Plex Mono', monospace; color: var(--text2); }
.step .t { font-weight: 500; }
.hint { margin: 0; color: var(--text3); font-size: 13px; }
.qr { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.qr img { width: 148px; height: 148px; border-radius: 8px; background: #fff; }
.qr code { font: 400 12px/18px 'IBM Plex Mono', monospace; color: var(--text2); word-break: break-all; flex: 1; min-width: 160px; user-select: all; }
