/* Авторизация — отдельный стиль */
:root {
  --c-primary: #4f46e5;
  --c-primary-hover: #4338ca;
  --c-danger: #dc2626;
  --c-border: #e5e7eb;
  --c-border-strong: #d1d5db;
  --c-text: #111827;
  --c-text-3: #9ca3af;
  --radius: 14px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--c-text); font-size: 14px; line-height: 1.5;
}
.auth-bg {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 50%, #f0fdf4 100%);
  padding: 20px;
}
.auth-card {
  background: #fff; border-radius: var(--radius);
  padding: 36px 32px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(16,24,40,.12);
  border: 1px solid var(--c-border);
}
.auth-card-sm { max-width: 380px; text-align: center; }
.auth-card h1 { font-size: 20px; margin: 0 0 6px; }
.auth-hint { color: #6b7280; margin: 0 0 20px; }
.auth-icon { font-size: 38px; margin-bottom: 8px; }

.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--c-primary), #7c3aed);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.auth-brand strong { display: block; font-size: 15px; }
.auth-brand span { font-size: 12px; color: var(--c-text-3); }
.auth-foot { margin-top: 20px; font-size: 12px; color: var(--c-text-3); text-align: center; }
.auth-links { margin-top: 16px; text-align: center; font-size: 13px; }

.form-group { margin-bottom: 16px; text-align: left; }
.form-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #4b5563; }
.input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--c-border-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; transition: all .15s;
}
.input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px #eef2ff; }
.code-input { text-align: center; font-size: 24px; letter-spacing: .4em; font-family: ui-monospace, monospace; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; border: 1px solid transparent; transition: all .15s;
}
.btn-block { width: 100%; }
.btn-lg { padding: 13px 20px; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); }

.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; }
.alert-danger { background: #fef2f2; color: var(--c-danger); border: 1px solid #fecaca; }
.alert-success { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.mt-2 { margin-top: 12px; }

.project-list { display: flex; flex-direction: column; gap: 10px; }
.project-card {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 16px; text-align: left;
  background: #f9fafb; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.project-card:hover { border-color: var(--c-primary); background: #eef2ff; }
.project-name { font-weight: 600; color: var(--c-text); }
.project-code { font-size: 12px; color: var(--c-text-3); }

.qr-box { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 12px; display: inline-block; margin-bottom: 12px; }
.secret-box {
  background: #f9fafb; border: 1px dashed var(--c-border-strong);
  padding: 10px; border-radius: var(--radius-sm);
  font-size: 13px; word-break: break-all; margin-bottom: 16px;
}
