:root { --primary: #4f46e5; --primary-hover: #4338ca; --bg: #f3f4f6; --card-bg: #ffffff; --text: #1f2937; --text-light: #6b7280; --success: #10b981; --error: #ef4444; }
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background-color: var(--bg); color: var(--text); display: flex; justify-content: center; align-items: center; min-height: 100vh; padding: 20px; }
.container { width: 100%; max-width: 450px; }
.card { background: var(--card-bg); padding: 2rem; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
h2 { text-align: center; margin-bottom: 0.5rem; color: var(--primary); }
.subtitle { text-align: center; color: var(--text-light); margin-bottom: 1.5rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1.2rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
input { width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; transition: border 0.2s; }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.btn-primary, .btn-secondary { width: 100%; padding: 0.75rem; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 0.5rem; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e5e7eb; color: var(--text); }
.hidden { display: none; }
.qr-container { display: flex; justify-content: center; margin: 1.5rem 0; padding: 1rem; background: #f9fafb; border-radius: 8px; border: 1px dashed #d1d5db; }
.timer { text-align: center; color: var(--error); font-weight: 600; margin-bottom: 1rem; }
.info { text-align: center; font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }
.result-box { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 1rem; border-radius: 8px; margin: 1rem 0; font-family: monospace; font-size: 0.85rem; white-space: pre-wrap; word-break: break-all; max-height: 300px; overflow-y: auto; }
.message { padding: 0.75rem; border-radius: 8px; margin-top: 1rem; text-align: center; font-size: 0.9rem; }
.message.error { background: #fef2f2; color: var(--error); border: 1px solid #fecaca; }
