html, body { margin: 0; min-height: 100%; background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 55%, #eef0f3 100%); }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: #1d2433; font-size: 14px; line-height: 1.5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.card { width: 100%; max-width: 440px; background: #fff; border: 1px solid #e4e7ec; border-radius: 18px; padding: 28px; box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.brand { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.brand h1 { font-size: 17px; margin: 0; font-weight: 600; }
.brand p { margin: 0; font-size: 12px; color: #7a8394; }
h2 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
label { display: block; font-size: 12px; font-weight: 500; color: #4a5365; margin: 14px 0 0; }
input { display: block; width: 100%; height: 42px; margin-top: 6px; border: 1px solid #d3d8e0; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; color: inherit; }
input:focus { outline: none; border-color: #3b6ef6; box-shadow: 0 0 0 3px rgba(59, 110, 246, .18); }
.code { letter-spacing: .4em; text-align: center; font-size: 18px; font-weight: 600; }
.btn { width: 100%; height: 42px; margin-top: 18px; border: 0; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.btn.primary { background: #2552eb; color: #fff; }
.btn.primary:hover { background: #1d40d8; }
.btn:disabled { opacity: .6; cursor: wait; }
.muted { color: #6b7385; margin: 0; font-size: 13px; }
.small { font-size: 12px; margin-top: 10px; }
.center { text-align: center; }
.qr { display: grid; place-items: center; margin: 14px 0 0; }
.qr img { width: 180px; height: 180px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: 12px; text-align: center; word-break: break-all; background: #f6f7f9; border-radius: 8px; padding: 8px; margin-top: 6px; }
.apps { display: grid; gap: 12px; margin-top: 16px; }
.app { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid #e4e7ec; border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.app:hover { border-color: #93b4fd; box-shadow: 0 4px 14px rgba(37, 82, 235, .08); }
.app b { display: block; font-size: 15px; font-weight: 600; }
.app small { display: block; color: #7a8394; font-size: 12px; margin-top: 2px; }
.app.off { opacity: .45; pointer-events: none; }
.ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; }
.ico.fin { background: #2552eb; }
.ico.kp { background: #b3322d; font-size: 18px; }
.msg { color: #b3322d; font-size: 13px; margin: 14px 0 0; min-height: 0; }
.msg:empty { display: none; }
.note { font-size: 12px; color: #9a6700; background: #fbf1dc; border-radius: 8px; padding: 8px 10px; margin: 12px 0 0; }
.link { display: block; margin: 16px auto 0; background: none; border: 0; color: #6b7385; font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; }
