/* ===================================================
   LOGIN PAGE - GROUPE SAMATÉ
   Version Premium 2026
=================================================== */

:root {
  --samate-blue: #0d47a1;
  --samate-blue-dark: #082c67;
  --samate-gold: #d4af37;
  --samate-light: #f8fafc;
  --samate-border: #e5e7eb;
  --samate-text: #334155;
  --samate-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* ===================================================
   BODY
=================================================== */

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(13, 71, 161, 0.88), rgba(8, 44, 103, 0.92)),
    url("../img/login-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Effet décoratif */

body::before {
  content: "";
  position: fixed;
  top: -250px;
  left: -250px;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  backdrop-filter: blur(20px);
}

body::after {
  content: "";
  position: fixed;
  bottom: -250px;
  right: -250px;
  width: 500px;
  height: 500px;
  background: rgba(212, 175, 55, 0.08);
  border-radius: 50%;
}

/* ===================================================
   CARD
=================================================== */

.login-card {
  position: relative;
  border: none;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(25px);
  box-shadow: var(--samate-shadow);
  overflow: hidden;
  transition: all 0.35s ease;
}

.login-card:hover {
  transform: translateY(-4px);
}

/* ===================================================
   HEADER BAR
=================================================== */

.login-header-bar {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--samate-blue),
    var(--samate-gold),
    var(--samate-blue)
  );
}

/* ===================================================
   LOGO
=================================================== */

.logo-container img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 30px rgba(13, 71, 161, 0.2);
  transition: all 0.4s ease;
}

.logo-container img:hover {
  transform: scale(1.05);
}

.text-samate-blue {
  color: var(--samate-blue);
}

.tracking-wide {
  letter-spacing: 1px;
}

/* ===================================================
   LABELS
=================================================== */

.form-label {
  color: var(--samate-text);
  margin-bottom: 0.5rem;
}

/* ===================================================
   INPUT GROUPS
=================================================== */

.input-group {
  border-radius: 14px;
  overflow: hidden;
}

.input-group-text {
  border: 1px solid var(--samate-border);
  background: #f8fafc;
  color: #64748b;
  min-width: 50px;
  justify-content: center;
}

.form-control {
  border: 1px solid var(--samate-border);
  padding: 13px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: none !important;
}

.form-control:focus {
  border-color: var(--samate-blue);
  background: #fff;
}

.input-group:focus-within {
  box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
  border-radius: 14px;
}

/* ===================================================
   PASSWORD BUTTON
=================================================== */

.password-toggle {
  cursor: pointer;
  transition: 0.3s;
}

.password-toggle:hover {
  background: var(--samate-blue);
  color: white;
}

/* ===================================================
   BOUTON LOGIN
=================================================== */

.btn-samate-primary {
  background: linear-gradient(135deg, var(--samate-blue), #1565c0);
  color: #fff;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  min-height: 52px;
}

.btn-samate-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(13, 71, 161, 0.35);
}

.btn-samate-primary:active {
  transform: scale(0.98);
}

/* ===================================================
   ALERT
=================================================== */

.alert-danger {
  background: #fff1f2;
  border-left: 4px solid #dc3545 !important;
  color: #842029;
}

/* ===================================================
   FOOTER
=================================================== */

.login-card p {
  color: #64748b;
}

/* ===================================================
   ANIMATION
=================================================== */

.login-card {
  animation: fadeLogin 0.7s ease;
}

@keyframes fadeLogin {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================
   RESPONSIVE TABLET
=================================================== */

@media (max-width: 992px) {
  .login-card {
    border-radius: 20px;
  }

  .logo-container img {
    width: 95px;
    height: 95px;
  }
}

/* ===================================================
   RESPONSIVE MOBILE
=================================================== */

@media (max-width: 768px) {
  body {
    padding: 20px;
    background-attachment: scroll;
  }

  .login-card {
    margin: 0;
    border-radius: 18px;
  }

  .logo-container img {
    width: 85px;
    height: 85px;
  }

  .form-control {
    padding: 12px;
  }

  .btn-samate-primary {
    min-height: 50px;
    font-size: 0.9rem;
  }
}

/* ===================================================
   PETITS SMARTPHONES
=================================================== */

@media (max-width: 480px) {
  .login-card {
    padding: 1.2rem !important;
  }

  .logo-container img {
    width: 75px;
    height: 75px;
  }

  h5 {
    font-size: 0.85rem !important;
  }

  .form-control,
  .input-group-text {
    font-size: 0.9rem;
  }

  .btn-samate-primary {
    font-size: 0.88rem;
  }
}

/* ===================================================
   DARK EFFECT PREMIUM
=================================================== */

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}
