:root {
  --teal-deep:    #0d4a45;
  --teal-mid:     #1d6b63;
  --teal-bright:  #2a9d8f;
  --teal-light:   #52b5a8;
  --teal-glow:    rgba(42,157,143,0.18);
  --white:        #ffffff;
  --off-white:    #e8f5f4;
  --text-muted:   rgba(255,255,255,0.45);
}

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

html, body {
  height: 100%;
  font-family: 'Barlow', sans-serif;
  background: var(--teal-deep);
  overflow: hidden;
}



/* ── TEXT ── */
.text-teal-deep{color:#0d4a45 !important;}
.text-teal-mid{color:#1d6b63 !important;}
.text-teal-bright{color:#2a9d8f !important;}
.text-teal-light{color:#52b5a8 !important;}
.text-teal-lighter{color:#68eddc !important;}
.text-teal-glow{color:rgba(42,157,143,0.18) !important;}




/* ── BTN ── */

.btn-secondary {
  color: #ffffff;
  background-color: #2a9d8f;
  border-color: #2a9d8f;
}

.btn-secondary:hover {
  color: #ffffff;
  background-color: #1d6b63;
  border-color: #1d6b63;
}


/* ── BACKGROUND ── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, #1a7a70 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 80%, #0a3530 0%, transparent 55%),
    linear-gradient(135deg, #0a3530 0%, #1d6b63 50%, #0d4a45 100%);
}

/* Geometric grid overlay */
.bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* Animated floating orbs */
.orb {
  position: fixed; border-radius: 50%; filter: blur(80px);
  animation: drift 12s ease-in-out infinite alternate;
  pointer-events: none; z-index: 1;
}
.orb-1 { width: 500px; height: 500px; background: rgba(42,157,143,0.15); top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 350px; height: 350px; background: rgba(82,181,168,0.10); bottom: 50px; left: -80px; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: rgba(13,74,69,0.4); top: 40%; left: 30%; animation-delay: -3s; animation-duration: 9s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.08); }
}

/* ── LAYOUT ── */
.page {
  position: relative; z-index: 10;
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100vh;
  padding: 0 5vw;
}

/* .main utilise Bootstrap : container-fluid + row align-items-center */
.main {
  overflow: hidden;
}

/* ── LEFT PANEL ── */
.left {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: slideIn 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.logo-box {
  text-align: center;
}
.logo-box img {
  width: 90%;
  max-width: 320px;
}

/* ── DIVIDER ── */
.divider {
  height: 55vh;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.2) 70%, transparent);
}

/* ── RIGHT PANEL ── */
.right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-left: 50px;
  animation: slideIn 0.8s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}

.form-header { margin-bottom: 4px; }

.form-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--white);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 300;
}

.form { display: flex; flex-direction: column; gap: 16px; }

.field { position: relative; }

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 14px 18px 14px 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: 'Barlow', sans-serif;
  outline: none;
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.field input::placeholder { color: rgba(255,255,255,0.3); }

.field input:focus {
  border-color: var(--teal-bright);
  background: rgba(42,157,143,0.12);
  box-shadow: 0 0 0 3px rgba(42,157,143,0.15), 0 0 20px rgba(42,157,143,0.1);
}

.field-icon {
  position: absolute;
  left: 15px;
  bottom: 14px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  transition: color 0.25s;
}

.field:focus-within .field-icon { color: var(--teal-light); }

.btn-login {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-mid));
  border: none;
  border-radius: 10px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(42,157,143,0.35);
  margin-top: 4px;
}

.btn-login::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(42,157,143,0.45); }
.btn-login:hover::before { opacity: 1; }
.btn-login:active { transform: translateY(0); }

/* Shimmer animation on button */
.btn-login::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s 1.5s infinite;
}
@keyframes shimmer {
  from { left: -60%; }
  to   { left: 160%; }
}

.forgot {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.forgot:hover { color: var(--teal-light); }
.forgot span { text-decoration: underline; text-underline-offset: 3px; }

/* ── FOOTER ── */
.footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 12px 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 0.8s 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BRANDS FOOTER : flexbox responsive ── */
#brands_table_footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  width: 100%;
}

#brands_table_footer img {
  /* Les dimensions max garantissent que les logos ne débordent pas sur mobile */
  max-height: 60px;
  max-width: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.45;
  filter: brightness(0) invert(1);
  transition: opacity 0.2s;
  /* On retire les styles inline imposés via les classes pr_img / ls_img sur mobile */
}

#brands_table_footer img:hover { opacity: 0.8; }

/* Sur desktop on peut se permettre des logos un peu plus grands */
@media (min-width: 768px) {
  #brands_table_footer img {
    max-height: 90px;
    max-width: 110px;
  }
  /* wonderservice est le plus haut, on lui laisse un peu plus */
  #brands_table_footer img.ls_img[style*="110px"] {
    max-height: 110px;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  body { overflow-y: auto; }

  .page {
    height: auto;
    min-height: 100vh;
    grid-template-rows: 1fr auto;
  }

  .main {
    padding: 30px 0 20px;
  }

  .left, .right { padding: 20px 0; }

  .footer {
    position: static;
    padding: 12px 0 20px;
  }

  #brands_table_footer img {
    max-height: 40px;
    max-width: 55px;
  }
}
