/* ============================================================
   auth.css — DataVix | Login / Auth Pages
   Matches the homepage's design system: Inter + Bricolage
   Grotesque, light slate background, black pill CTAs, emerald
   success accents.
   ============================================================ */

.auth-body,
.auth-body * {
  font-family: 'Inter', system-ui, sans-serif;
}

.auth-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: #f8fafc;
  background-image:
    linear-gradient(to right, rgba(2,6,23,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(2,6,23,0.03) 1px, transparent 1px);
  background-size: 35px 35px;
  color: #0f172a;
}

.auth-container {
  width: 100%; max-width: 440px; text-align: center;
}

.auth-logo {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 22px; font-weight: 800; color: #020617;
  text-decoration: none; display: block; margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.auth-tagline { color: #64748b; font-size: 13px; margin-bottom: 28px; }

.auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 36px 32px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 12px 32px rgba(15,23,42,0.06);
}

.auth-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 20px; font-weight: 700; color: #020617; margin-bottom: 4px;
}
.auth-sub   { color: #64748b; font-size: 13px; margin-bottom: 24px; }

/* Shared form styles (also used in landing modal) */
.form-group { margin-bottom: 16px; position: relative; }
.form-group label {
  display: block; font-size: 12px; color: #475569;
  margin-bottom: 6px; font-weight: 500;
}
.form-group input {
  width: 100%; padding: 11px 14px;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 8px; color: #0f172a; font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
  outline: none; border-color: #020617;
  box-shadow: 0 0 0 3px rgba(2,6,23,0.08);
}
.form-group input.error { border-color: #ef4444; }
.field-error { font-size: 11px; color: #dc2626; margin-top: 4px; display: block; }

.pwd-group input { padding-right: 42px; }
.pwd-toggle {
  position: absolute; right: 12px; top: 32px;
  background: none; border: none; cursor: pointer; font-size: 16px;
}

.form-error {
  background: rgba(239,68,68,0.08); border: 1px solid #fecaca;
  border-radius: 8px; padding: 10px 14px;
  color: #b91c1c; font-size: 13px; margin-bottom: 14px;
}
.form-success {
  background: rgba(16,185,129,0.08); border: 1px solid #a7f3d0;
  border-radius: 8px; padding: 10px 14px;
  color: #047857; font-size: 13px; margin-bottom: 14px;
}

.auth-submit-btn {
  width: 100%;
  background: #020617;
  border: none; padding: 13px; border-radius: 9999px;
  color: #fff; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.2s;
  margin-top: 6px;
}
.auth-submit-btn:hover   { background: #1e293b; }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-switch {
  text-align: center; font-size: 12px; color: #64748b; margin-top: 20px;
}
.auth-switch a { color: #020617; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
