/* Auth / pages hors dashboard (layout app) */

:root {
  --bg: #0f1419;
  --bg-elev: #1a222c;
  --ink: #e8eef4;
  --muted: #8b9aab;
  --accent: #3d8bfd;
  --danger: #e35d5d;
  --border: #2a3542;
  --font: "Segoe UI", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1c2a3a 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #152032 0%, transparent 50%),
    var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

.shell--login {
  max-width: 420px;
  padding-top: 4rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}

.brand--login {
  margin-bottom: 0.35rem;
}

.muted { color: var(--muted); }

.muted--login {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--ink);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #061018;
  font-weight: 600;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn--block { width: 100%; }

.panel {
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

input[type=email],
input[type=password],
input[type=text] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #0c1117;
  color: var(--ink);
  font: inherit;
  margin-bottom: 1rem;
}

.password-policy input[type=password] {
  margin-bottom: 0.55rem;
}

.error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.checkbox input { margin: 0; }

.status {
  color: #4ade80;
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.login-forgot {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

.shell--login-wide {
  max-width: 480px;
}

.setup-2fa {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.setup-2fa__qr {
  flex-shrink: 0;
  padding: 0.65rem;
  background: #fff;
  border-radius: 8px;
  line-height: 0;
}

.setup-2fa__qr svg {
  display: block;
  width: 192px;
  height: 192px;
}

.setup-2fa__manual {
  flex: 1;
  min-width: 12rem;
}

.setup-2fa__secret {
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: #f1f5f9;
  background: #0c1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  word-break: break-all;
}

.setup-2fa__secret code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.setup-2fa__logout {
  margin-top: 0.85rem;
}
