/* hepsigörev Uyarı Paneli — sade düzen (giriş, 2FA, hata sayfaları).
   app.css ile aynı tasarım dili; yalnızca açık tema. Inline stil yok (CSP). */
:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --hover: #f7f7f9;
  --border: #e6e6ea;
  --border-strong: #d6d6dc;
  --text: #17171c;
  --text-2: #3d3d47;
  --muted: #6a6a75;
  --faint: #9a9aa3;
  --brand: #6c44ad;
  --brand-500: #8b5cd6;
  --brand-hover: #5b3896;
  --brand-50: #f5f1fc;
  --focus: rgba(139, 92, 214, 0.38);
  --red-bg: #fdeeee; --red-text: #b42318;
  --green-bg: #e8f6ee; --green-text: #11683b;
  --blue-bg: #ebf2fe; --blue-text: #1f4fbf;
  --gray-bg: #f0f0f3; --gray-text: #50505a;
  --radius: 8px;
  --radius-lg: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 50% -180px, #efe8fb 0%, rgba(239, 232, 251, 0) 70%),
    var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { color: var(--text); line-height: 1.25; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bare-wrap { max-width: 420px; margin: 0 auto; padding: 72px 16px 32px; }
body.bare .bare-wrap:has(.table) { max-width: 1000px; }
.bare-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.bare-logo { display: block; height: 38px; width: auto; max-width: 100%; }
.bare-foot { text-align: center; font-size: 0.825rem; margin-top: 28px; color: var(--faint); }
.bare-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-bottom: 20px; font-size: 0.925rem; }
.bare-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04), 0 8px 24px rgba(20, 20, 30, 0.06);
  padding: 32px;
  margin-bottom: 20px;
}
.auth-card h1, .card h1 { font-size: 1.35rem; margin: 0 0 6px; font-weight: 650; letter-spacing: -0.01em; }
.card h2 { font-size: 1.05rem; margin: 0 0 12px; }
.card > .muted:first-of-type { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
p { margin: 0 0 12px; }

.form { margin-top: 22px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-inline .field { margin-bottom: 0; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--text); }
.field small { font-size: 0.825rem; color: var(--muted); }
.field-error { color: var(--red-text); }
input[type=text], input[type=email], input[type=password], input[type=date], select {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20, 20, 30, 0.04);
  transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover { border-color: #c4c4cc; }
input:focus, select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--focus); }
.input-code { font-size: 1.35rem; letter-spacing: 0.35em; text-align: center; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 18px;
  font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
.btn:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(76, 40, 140, 0.25); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.btn-danger { color: var(--red-text); border-color: #efc4bf; }
.btn-danger:hover { background: var(--red-bg); color: var(--red-text); }
.btn-block { width: 100%; margin-top: 6px; min-height: 46px; }
.form .btn + .btn { margin-left: 8px; }

.flash { padding: 11px 14px; border-radius: var(--radius); margin: 0 0 16px; font-size: 0.925rem; font-weight: 500; border: 1px solid transparent; }
.flash-success { background: var(--green-bg); color: var(--green-text); border-color: #cfe9da; }
.flash-error { background: var(--red-bg); color: var(--red-text); border-color: #f6d3d0; }
.flash-info { background: var(--blue-bg); color: var(--blue-text); border-color: #d5e3fb; }
.card .flash { margin-top: 16px; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; background: var(--gray-bg); color: var(--gray-text); }
.badge-ok { background: var(--green-bg); color: var(--green-text); }
.badge-off { background: var(--gray-bg); color: var(--gray-text); }

.auth-alt { text-align: center; margin: 20px 0 0; font-size: 0.9rem; }
.auth-alt a { color: var(--muted); }
.auth-alt a:hover { color: var(--brand); }
.steps { padding-left: 1.2em; margin: 18px 0; }
.steps li { margin-bottom: 14px; }
.secret-box { margin: 10px 0 4px; padding: 12px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.secret { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.05em; color: var(--text); word-break: break-all; user-select: all; }

.error-card { text-align: center; }
.error-card .btn { margin-top: 8px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.925rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-weight: 600; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.row-muted td { color: var(--muted); }
.nowrap { white-space: nowrap; }
.wrap { overflow-wrap: anywhere; }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 12px 0 24px; }

@media (max-width: 480px) {
  .bare-wrap { padding-top: 40px; }
  .card { padding: 22px; }
}
