/* ============================================================
   BLOGVITALS — AUTH + DASHBOARD STYLES
   Used by: signup.php, login.php, forgot/reset-password.php,
            dashboard.php, admin.php
   ============================================================ */

/* ── Auth pages (signup, login, forgot, reset) ──────────── */
.auth-page {
  background: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 44px 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.auth-card h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0 0 6px;
  color: var(--dark);
}

.auth-sub {
  color: var(--grey);
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.auth-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  margin-top: 18px;
}

.auth-card label:first-of-type { margin-top: 0; }

.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--card-border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.auth-card input:focus {
  outline: none;
  border-color: var(--teal);
}

.hint {
  font-weight: 400;
  color: var(--grey);
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  margin-top: 24px;
  padding: 13px;
  font-size: 1rem;
  border-radius: 8px;
}

.auth-error {
  background: var(--orange-light);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.auth-success {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 20px;
}

.auth-footer-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--grey);
  margin-top: 20px;
}

.auth-footer-note a { color: var(--teal); font-weight: 600; }

.forgot-link {
  text-align: right;
  font-size: 0.8rem;
  margin-top: 6px;
}
.forgot-link a { color: var(--grey); }
.forgot-link a:hover { color: var(--teal); }

/* ── Dashboard ──────────────────────────────────────────── */
.topbar-email {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  padding: 0 8px;
}

.dash-main {
  padding: 52px 40px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.dash-inner { width: 100%; }

.dash-header {
  margin-bottom: 36px;
}

.dash-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 4px;
  color: var(--dark);
}

.dash-sub {
  color: var(--grey);
  margin: 0;
}

.dash-empty {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 52px 40px;
  text-align: center;
}

.dash-empty p { color: var(--grey); margin-bottom: 20px; }

/* Report list rows */
.report-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.report-row {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
}

.report-row-url {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
  margin: 0 0 4px;
  word-break: break-all;
}

.report-row-keyword {
  font-size: 0.8rem;
  color: var(--grey);
  margin: 0 0 2px;
}

.report-row-date {
  font-size: 0.75rem;
  color: var(--grey);
  margin: 0;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-family: 'Titan One', cursive;
  font-size: 1.1rem;
  color: #fff;
}
.score-badge.pass { background: var(--teal); }
.score-badge.warn { background: var(--warn); }
.score-badge.fail { background: var(--orange); }

/* ── Admin table ────────────────────────────────────────── */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--light);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--grey);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--card-border);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--card-border);
  color: var(--dark);
}

.admin-table tr:last-child td { border-bottom: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-card { padding: 32px 24px; }
  .dash-main { padding: 32px 20px; }
  .report-row { grid-template-columns: 1fr; gap: 12px; }
  .report-row-actions { text-align: left; }
}
