﻿/* Secudeal V2 - Connexion */

/* ========== AUTH LAYOUT ========== */

body.secudeal-v2-auth {
  background-image: linear-gradient(130deg, rgb(0, 48, 135) 0%, rgb(0, 112, 224) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ========== FOOTER LINKS (AUTH PAGES) ========== */

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.footer-links li {
  display: block;
  margin: 0;
  padding: 0;
}

.footer-links li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.footer-links li a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Mobile : liens verticaux */
@media (max-width: 575px) {
  .footer-links {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ========== GLOBAL UTILITIES ========== */

/* Utilities */
.text-right {
  text-align: right !important;
}

/* Override Bootstrap p avec valeur Secudeal */
.p-3 {
  padding: 1.2rem !important;
}

.p-5 {
  padding: 3.4rem !important;
}

@media (min-width: 576px) {
  .p-sm-5 {
    padding: 3.4rem !important;
  }
}

/* ========== TOGGLE PASSWORD + VALIDATION ========== */

/* Quand il y a un toggle password (eye icon) ET une validation, décaler l'icône de validation à gauche */
.form-floating:has(button[id*="toggle"]) .form-control.is-valid,
.form-floating:has(button[id*="toggle"]) .form-control.is-invalid {
  padding-right: 4.5rem !important; /* Plus d'espace pour les 2 icônes */
}

.form-floating:has(button[id*="toggle"]) .form-control.is-valid {
  background-position: right 3rem center !important; /* Décaler l'icône check à gauche de l'eye */
}

.form-floating:has(button[id*="toggle"]) .form-control.is-invalid {
  background-position: right 3rem center !important; /* Décaler l'icône erreur à gauche de l'eye */
}

.form-floating > .form-control-plaintext ~ label::after, 
.form-floating > .form-control:focus ~ label::after, 
.form-floating > .form-control:not(:placeholder-shown) ~ label::after, 
.form-floating > .form-select ~ label::after {
  background-color:transparent;
}