/* ========================================
   FINDER — auth.css
   Styles for login.html + admin.html.
   Relies on the CSS variables defined in
   styles.css (load styles.css first).
   ======================================== */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* ambient route glow behind the card, echoes the hero pin glow */
.auth-body::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(33,150,243,0.16) 0%, rgba(33,150,243,0) 60%);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 408px;
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 36px 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.auth-brand-img {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
}
.auth-brand-name {
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}
.auth-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: auto;
}

.auth-route {
  width: 100%;
  height: 2px;
  border-top: 2px dotted rgba(255,255,255,0.16);
  margin-bottom: 26px;
}

.auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.auth-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.5;
}

.auth-field { margin-bottom: 16px; }
.auth-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input::placeholder { color: rgba(255,255,255,0.35); }
.auth-input:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(33,150,243,0.18);
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(229,57,53,0.12);
  border: 1px solid rgba(229,57,53,0.35);
  color: #FFB4B0;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.auth-error[hidden] { display: none; }
.auth-error svg { flex-shrink: 0; margin-top: 1px; }

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.auth-submit:disabled,
.auth-google:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-google {
  width: 100%;
  justify-content: center;
  background: var(--white);
  color: #1F1F1F;
  border: 1px solid rgba(0,0,0,0.08);
  font-weight: 600;
}
.auth-google:hover { opacity: 0.92; }

.auth-back {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.auth-back:hover { color: var(--white); }

/* ---------- ADMIN DASHBOARD SHELL ---------- */
.admin-shell { min-height: 100vh; background: var(--navy); }

.admin-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.admin-subheading {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.admin-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.admin-stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.admin-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
}
.admin-stat-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

.admin-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--text-muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 22px 26px; }
}