/* ============================================================
   STRATIX Auth Theme
   Shared styles for login.html, verify_otp.html, locked_out.html
   ------------------------------------------------------------
   Strategy: Bootstrap 5.3 classes (form-control, btn, alert,
   card) remain on the markup. This file overrides their
   visuals only. Behavior, JS hooks, and accessibility are
   untouched.
   ============================================================ */

:root {
  --bg:      #0a0f1e;
  --surface: #111827;
  --border:  #1e2d45;
  --accent:  #2dd4bf;
  --text:    #e2e8f0;
  --muted:   #64748b;
  --danger:  #f43f5e;
  --warn:    #f59e0b;
  --ok:      #10b981;
}

/* ---------- Base ---------- */
html, body {
  min-height: 100vh;
}

body {
  /* Overrides the #f4f6f9 that was previously inline in base_auth.html */
  background: var(--bg) !important;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 20px;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,212,191,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,212,191,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Glow orb */
body::after {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45,212,191,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above the background layers */
.card,
.auth-wrap {
  position: relative;
  z-index: 1;
}

/* ---------- Fade-up entry animation ---------- */
@keyframes stratixFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Card (overrides Bootstrap .card) ---------- */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 16px !important;
  padding: 36px 32px 32px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.4) !important;
  color: var(--text);
  animation: stratixFadeUp .5s ease both;
  max-width: 420px;
  width: 100%;
}

/* Override Bootstrap's p-4 since we set our own padding */
.card.p-4 { padding: 36px 32px 32px !important; }

/* ---------- Client identity block ---------- */
.client-logo-wrap {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.client-logo-wrap img {
  max-height: 60px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 10px;
}
.client-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .5px;
  margin-top: 8px;
}
.client-tagline,
.auth-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: .3px;
}
.auth-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}

/* Bootstrap's text-muted → match STRATIX muted */
.text-muted { color: var(--muted) !important; }

/* Headings inside auth cards */
.card h4 {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ---------- Form fields ---------- */
/* Bootstrap label */
.card label,
.card .form-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Override Bootstrap .form-control */
.form-control {
  background: #0d1420 !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  color: var(--text) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  transition: border-color .15s, box-shadow .15s;
  box-shadow: none !important;
}
.form-control:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(45,212,191,.15) !important;
  background: #0d1420 !important;
  color: var(--text) !important;
}
.form-control::placeholder { color: var(--muted) !important; }

/* Autofill styling — browsers override background otherwise */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px #0d1420 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ---------- Alerts (override Bootstrap) ---------- */
.alert {
  border-radius: 8px !important;
  font-size: 12.5px !important;
  padding: 11px 14px !important;
  border-width: 1px !important;
  margin-bottom: 16px !important;
}
.alert-danger {
  background: rgba(244,63,94,.1) !important;
  border-color: rgba(244,63,94,.3) !important;
  color: #fca5a5 !important;
}
.alert-warning {
  background: rgba(245,158,11,.1) !important;
  border-color: rgba(245,158,11,.3) !important;
  color: #fcd34d !important;
}
.alert-success {
  background: rgba(16,185,129,.1) !important;
  border-color: rgba(16,185,129,.3) !important;
  color: #6ee7b7 !important;
}

/* ---------- Buttons (override .btn / .btn-dark) ---------- */
.btn {
  padding: 13px !important;
  font-family: 'Syne', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 9px !important;
  letter-spacing: .5px !important;
  transition: opacity .15s, transform .12s !important;
  cursor: pointer;
}

.btn-dark,
.btn-primary {
  background: linear-gradient(135deg, #F26522 0%, #1B3A6B 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(45,212,191,.2) !important;
}
.btn-dark:hover,
.btn-primary:hover {
  opacity: .92 !important;
  transform: translateY(-1px);
  color: #fff !important;
}
.btn-dark:focus,
.btn-primary:focus {
  box-shadow: 0 0 0 3px rgba(45,212,191,.3) !important;
}

/* ---------- reCAPTCHA tint ---------- */
/* The iframe itself can't be styled, but we can frame it nicely */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

/* ---------- Footer tag ---------- */
.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.auth-footer img {
  height: 20px;
  opacity: .6;
  vertical-align: middle;
  margin-right: 6px;
}
.auth-footer strong {
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  letter-spacing: 1px;
}

/* ---------- Spacing utilities Bootstrap already uses ---------- */
.mb-3 { margin-bottom: 16px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .card { padding: 28px 22px !important; }
  body { padding: 12px; }
}
