@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════════════════
   SentraVoice · shared auth pages (CRM login, internal login, admin login)
   Mirrors the sentravoice.ai hero: deep navy field, royal-blue orbs, mesh grid.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --brand:      #305CDE;
  --brand-dark: #1e3a8a;
  --ink:        #0f172a;
  --muted:      #64748b;
  --line:       #e2e8f0;
  --danger:     #dc2626;
  --success:    #059669;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: linear-gradient(155deg, #04091a 0%, #080f24 45%, #0c1830 100%);
  color: var(--ink);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The card area below the shared site topbar. */
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 40px;
  position: relative;
  z-index: 1;
}

/* Mesh grid + glowing orbs, lifted from the marketing hero */
.bg-mesh {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(48, 92, 222, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 92, 222, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.orb { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.orb-1 {
  width: 640px; height: 640px; top: -240px; right: -120px;
  background: radial-gradient(circle, rgba(48, 92, 222, 0.38) 0%, transparent 65%);
  animation: orbFloat1 14s ease-in-out infinite;
}
.orb-2 {
  width: 480px; height: 480px; bottom: -160px; left: -90px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.26) 0%, transparent 65%);
  animation: orbFloat2 18s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, 35px) scale(1.06); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -50px) scale(.94); }
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.985);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 40px 38px 34px;
  box-shadow: 0 30px 60px -18px rgba(2, 6, 23, 0.6), 0 0 0 1px rgba(48, 92, 222, 0.08);
  animation: cardIn .5s cubic-bezier(.2, .8, .3, 1);
}
.card.wide { max-width: 470px; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.brand { display: flex; flex-direction: column; align-items: center; margin-bottom: 30px; }
.brand-logo { height: 34px; width: auto; display: block; margin-bottom: 14px; mix-blend-mode: multiply; }
.brand-tag {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand);
  background: rgba(48, 92, 222, 0.09);
  border: 1px solid rgba(48, 92, 222, 0.18);
  border-radius: 100px;
  padding: 5px 14px;
}

h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.5px; text-align: center; margin-bottom: 6px; }
.subtitle { font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 28px; }

.card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card .field { margin-bottom: 17px; }

.card label {
  font-size: 10.5px; font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  display: block; margin-bottom: 6px;
}

.card input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card input::placeholder { color: #94a3b8; }
.card input:hover { border-color: #cbd5e1; }
.card input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(48, 92, 222, 0.14); }

.card button {
  width: 100%;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 13px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  box-shadow: 0 4px 14px rgba(48, 92, 222, 0.28);
  margin-top: 6px;
}
.card button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(48, 92, 222, 0.36); }
.card button:active:not(:disabled) { transform: translateY(0); }
.card button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

.msg {
  font-size: 13px; font-weight: 500;
  border-radius: 10px;
  padding: 10px 13px;
  margin-bottom: 15px;
  display: none;
}
.err { color: #991b1b; background: rgba(220, 38, 38, .08); border: 1px solid rgba(220, 38, 38, .2); }
.ok  { color: #065f46; background: rgba(5, 150, 105, .09); border: 1px solid rgba(5, 150, 105, .22); }

.link { text-align: center; margin-top: 22px; font-size: 13px; color: var(--muted); }
.link a { color: var(--brand); text-decoration: none; font-weight: 600; }
.link a:hover { text-decoration: underline; }
/* Second footer line (e.g. the Outbound login pointer). */
.link-line { display: block; margin-top: 8px; }

.page-foot {
  position: relative; z-index: 1;
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(226, 232, 240, 0.45);
  letter-spacing: 0.04em;
}

.shell { position: relative; z-index: 1; width: 100%; max-width: 470px; }


/* ── Shared-topbar overrides ─────────────────────────────────────────────────
   auth page overrides: the injected topbar is light and sticky, so keep it
   above the fixed orbs and stop index.css's body rules fighting this page.
   ───────────────────────────────────────────────────────────────────────── */
#main-header { position: relative; z-index: 10; flex-shrink: 0; }
.bg-mesh, .orb { z-index: 0; }
