:root {
  --brand:        #059669;
  --brand-dark:   #064e3b;
  --brand-hover:  #047857;
  --brand-light:  #ecfdf5;
  --brand-mid:    #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #fff;
  color: #1e293b;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar-afri {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.navbar-brand { display: flex; align-items: center; gap: 9px; margin-left: 4px; }
.navbar-brand .logo-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.navbar-brand .logo-text { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; }
.navbar-brand .logo-text .air    { color: #0f172a; }
.navbar-brand .logo-text .pharma { color: var(--brand); }
.navbar-toggler { background: #f1f5f9 !important; border-radius: 8px; padding: 6px 10px; }
.navbar-toggler i { color: #0f172a; }

/* MAIN */
main { flex: 1; display: flex; align-items: center; padding-top: 4.25rem; }

/* HERO */
.hero {
  width: 100%; min-height: calc(100vh - 4.25rem);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem 3rem; position: relative; overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background-color: #fff; z-index: -3; }

/* Blobs décoratifs */
.hero-blob1 {
  position: absolute; top: -120px; left: -100px;
  width: 380px; height: 380px; background: var(--brand-mid); opacity: 0.14;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; z-index: -2;
}
.hero-blob2 {
  position: absolute; bottom: -140px; right: -80px;
  width: 320px; height: 320px; background: var(--brand); opacity: 0.08;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; z-index: -2;
}

.hero-content { max-width: 1100px; width: 100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  border: 1px solid var(--brand); background: var(--brand-light);
  color: var(--brand-dark); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 0.85rem;
}
.hero-badge i { color: var(--brand); }

.hero-title { font-size: clamp(1.9rem, 3.1vw, 2.5rem); font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.hero-subtitle { font-size: 0.95rem; color: #64748b; max-width: 500px; line-height: 1.6; }

/* CARD LOGIN */
.login-card {
  background: #fff; border-radius: 1.5rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border: 1px solid #f1f5f9;
  padding: 1.8rem 1.7rem; color: #111827;
}

.login-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.25rem; color: #0f172a; }
.login-subtitle { font-size: 0.85rem; color: #64748b; margin-bottom: 1rem; }

.form-label { font-size: 0.8rem; font-weight: 600; color: #374151; }

.form-control {
  font-size: 0.86rem; padding: 0.65rem 0.75rem; border-radius: 0.7rem;
  border: 1px solid #d1d5db; transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%; background: #fff; color: #1e293b; font-family: inherit;
}
.form-control:focus {
  border-color: var(--brand); box-shadow: 0 0 0 0.12rem rgba(5,150,105,0.18); outline: none;
}

/* Bouton principal */
.btn-afri-primary {
  background: var(--brand); border: none; color: #fff;
  font-weight: 700; font-size: 0.92rem; padding: 0.75rem 0.9rem;
  border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; width: 100%; transition: background .2s ease, transform .15s ease;
  font-family: inherit; cursor: pointer;
}
.btn-afri-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-afri-primary:active { transform: translateY(0); }

/* Bouton Google */
.btn-google {
  border-radius: 999px; border: 1.5px solid #e2e8f0; background: #fff;
  font-size: 0.86rem; width: 100%; padding: 0.7rem;
  font-family: inherit; color: #374151; font-weight: 600;
  transition: border-color .2s ease;
}
.btn-google:hover { border-color: var(--brand); }

/* Mot de passe oublié */
.forgot-link { font-size: 0.8rem; color: var(--brand); text-decoration: none; font-weight: 600; }
.forgot-link:hover { text-decoration: underline; }

/* Divider */
.divider {
  display: flex; align-items: center;
  margin: 1rem 0; font-size: 0.75rem; color: #9ca3af;
}
.divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px dashed #e2e8f0; }
.divider span { padding: 0 0.6rem; }

/* Lien inscription */
.text-accent { color: var(--brand); font-weight: 600; text-decoration: none; }
.text-accent:hover { text-decoration: underline; }

/* FOOTER */
footer { background: #0f172a; color: #94a3b8; font-size: 0.8rem; padding: 0.9rem 1.5rem; }
.footer-links a { color: #e2e8f0; text-decoration: none; margin-right: 1rem; font-weight: 500; font-size: 0.8rem; }
.footer-links a:hover { color: var(--brand-mid); }
.footer-social a { color: #e2e8f0; margin-left: 0.75rem; font-size: 1.05rem; transition: color .2s ease; }
.footer-social a:hover { color: var(--brand-mid); }

@media (min-width: 768px) {
  .hero { padding-inline: 3rem; }
  .login-card { padding: 2rem 2.1rem; }
}
@media (min-width: 992px) {
  .hero { padding-inline: 4.5rem; }
  .hero-title { font-size: 2.4rem; }
}
/* ============================================================
   AJOUT : à coller à la fin de login.css ET sign_in.css.
   Style du menu mobile (navbarNav) — auparavant inexistant
   puisque l'élément lui-même n'existait pas dans le HTML.
============================================================ */

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    margin: 0 -1rem;
    padding: 10px 1.25rem 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  }
}

.navbar-nav .nav-link {
  color: #374151 !important;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 4px !important;
}
.navbar-nav .nav-link:hover {
  color: var(--brand) !important;
}
