/* Agency backoffice theme — Bootstrap-5, warm-neutral palette.
   Source of truth for tokens is :root below. Do not edit Bootstrap vars directly. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  --ac-navy:         #0D2B4E;
  --ac-navy-mid:     #153D6B;
  --ac-brand:        #0E4C96;
  --ac-brand-light:  #E8F0FB;
  --ac-green:        #1D9E75;
  --ac-green-dark:   #0F7A5A;
  --ac-border:       #E0DED6;   /* warm stone — Option 1 */
  --ac-text:         #1A1715;   /* warm near-black */
  --ac-muted:        #8A8680;   /* warm mid grey */
  --ac-label:        #6B6763;   /* warm label grey */

  /* Override Bootstrap primary */
  --bs-primary:      #0E4C96;
  --bs-primary-rgb:  14, 76, 150;
  --bs-success:      #1D9E75;
  --bs-success-rgb:  29, 158, 117;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --bs-body-color:   #1A1715;
}

body {
  font-family: var(--bs-body-font-family);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
}

/* ── Auth background ─────────────────────────────────────
   Subtle geometric SVG pattern on a deep navy gradient.
   On-brand, abstract, professional — replaces the red network.
───────────────────────────────────────────────────────── */
.auth-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #061728 0%, #0D2B4E 45%, #0F3460 100%);
  overflow: hidden;
}

/* Animated floating circles — subtle ambient motion */
.auth-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,76,150,0.18) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: float1 18s ease-in-out infinite;
}
.auth-bg::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29,158,117,0.12) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: float2 22s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,30px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }

/* SVG dot grid overlay */
.auth-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Diagonal lines — add structure */
.auth-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(14,76,150,0.08) 1px, transparent 1px),
    linear-gradient(45deg,  rgba(14,76,150,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* ── Auth card ───────────────────────────────────────── */
.auth-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(6,23,40,0.45), 0 4px 16px rgba(6,23,40,0.3);
  width: 100%;
  max-width: 400px;
  padding: 40px 36px;
  position: relative;
  z-index: 10;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.auth-brand-icon {
  width: 42px; height: 42px;
  background: var(--ac-green);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-brand-icon i { font-size: 20px; color: white; }
.auth-brand-name {
  font-size: 18px; font-weight: 700;
  color: var(--ac-navy);
  letter-spacing: -0.3px;
  line-height: 1.1;
}
.auth-brand-sub {
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--ac-muted);
  margin-top: 2px;
}

.auth-title {
  font-size: 20px; font-weight: 700;
  color: var(--ac-text);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.auth-subtitle {
  font-size: 13px;
  color: var(--ac-muted);
  margin-bottom: 24px;
  line-height: 1.55;
}

/* Form controls — override Bootstrap defaults */
.form-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ac-label);
  margin-bottom: 6px;
}

.form-control {
  border: 1.5px solid var(--ac-border);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ac-text);
  background: #FAFAF7;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  border-color: var(--ac-brand);
  box-shadow: 0 0 0 3px rgba(14,76,150,0.12);
  background: white;
}
.form-control::placeholder { color: var(--ac-muted); }

/* Input group for password */
.input-group .form-control { border-right: none; border-radius: 9px 0 0 9px; }
.input-group .btn-outline-secondary {
  border: 1.5px solid var(--ac-border);
  border-left: none;
  border-radius: 0 9px 9px 0;
  color: var(--ac-muted);
  background: #FAFAF7;
  padding: 0 14px;
}
.input-group .btn-outline-secondary:hover { color: var(--ac-brand); background: var(--ac-brand-light); }
.input-group:focus-within .btn-outline-secondary {
  border-color: var(--ac-brand);
}

/* Primary button */
.btn-primary {
  background: var(--ac-brand);
  border-color: var(--ac-brand);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  letter-spacing: -0.1px;
  transition: all .15s;
}
.btn-primary:hover { background: #0A3D7A; border-color: #0A3D7A; }
.btn-primary:active { transform: scale(0.99); }

/* Success/green button */
.btn-success {
  background: var(--ac-green);
  border-color: var(--ac-green);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
}
.btn-success:hover { background: var(--ac-green-dark); border-color: var(--ac-green-dark); }

/* Link button */
.btn-link {
  color: var(--ac-brand);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 0;
}
.btn-link:hover { color: #0A3D7A; text-decoration: underline; }

/* Divider */
.auth-divider {
  height: 1px;
  background: var(--ac-border);
  margin: 20px 0;
}

/* Remember me checkbox */
.form-check-input:checked {
  background-color: var(--ac-brand);
  border-color: var(--ac-brand);
}
.form-check-label { font-size: 13px; color: var(--ac-muted); }

/* Forgot password link */
.forgot-link {
  font-size: 13px;
  color: var(--ac-brand);
  text-decoration: none;
  font-weight: 500;
}
.forgot-link:hover { color: #0A3D7A; text-decoration: underline; }
.forgot-icon { font-size: 12px; margin-right: 3px; }

/* Footer credit */
.auth-footer {
  position: fixed;
  bottom: 20px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  z-index: 5;
  letter-spacing: 0.3px;
}

