/* assets/css/login.css
   Login Boost - style cohérent avec boost-modern-form.css
*/

/* ============ Background animé façon Boost ============ */
html, body { height: 100%; }
body { margin: 0; }

.authincation{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #0f1117;
  color: #f3f4f6;
  padding: 24px;
}

/* halos néon */
.authincation::before{
  content:"";
  position:absolute;
  inset:-30%;
  background:
    radial-gradient(900px 520px at 20% 20%, rgba(255,0,107,.24), transparent 60%),
    radial-gradient(900px 520px at 80% 35%, rgba(250,169,64,.22), transparent 62%),
    radial-gradient(900px 520px at 50% 85%, rgba(208,11,244,.18), transparent 62%),
    radial-gradient(700px 420px at 70% 75%, rgba(254,240,14,.12), transparent 60%),
    radial-gradient(700px 420px at 30% 70%, rgba(218,10,14,.12), transparent 60%);
  filter: blur(16px);
  z-index: 0;
  opacity:.95;
  animation: floatBG 10s ease-in-out infinite alternate;
}
@keyframes floatBG{
  0%   { transform: translate3d(-1.2%, -1.2%, 0) scale(1.02); }
  100% { transform: translate3d(1.2%, 1.2%, 0) scale(1.06); }
}

/* texture glow */
.authincation::after{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.06), transparent 40%),
    radial-gradient(circle at 0% 50%, rgba(255,255,255,.04), transparent 38%);
  mix-blend-mode: screen;
  z-index:0;
  pointer-events:none;
}

/* ============ Carte login (glass) ============ */
.authincation-content{
  position: relative;
  z-index: 1;
  width: min(560px, 92vw);
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(10,10,14,.78);          /* glass */
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 90px rgba(0,0,0,.60), 0 0 0 1px rgba(255,255,255,.04) inset;
  overflow: hidden;
  transition: width 0.3s ease;
}

/* barre néon en haut */
.authincation-content::before{
  content:"";
  position:absolute; left:0; top:0; right:0; height: 4px;
  background: linear-gradient(135deg, #FAA940, #f89310);
  opacity: .95;
  z-index: 2;
}

/* padding interne */
.auth-form{
  padding: 22px;
}

/* logo responsive */
.auth-form img{
  max-width: 100%;
  height: auto;
}

/* titre */
.auth-form h4{
  margin: 14px 0 16px !important;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

/* ============ Inputs ============ */
.form-group label{
  display:block;
  font-weight: 900;
  margin: 10px 0 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 12px;
  color: rgba(243,244,246,.92);
}

.form-control{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.40);
  color: #f3f4f6;
  outline: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.form-control:focus{
  border-color: rgba(255, 0, 107, .70);
  box-shadow: 0 0 0 4px rgba(255,0,107,.16);
  transform: translateY(-1px);
}

/* Correction conflit Bootstrap pour Prénom/Nom et espacement augmenté */
.form-row {
    display: flex !important;
    gap: 30px !important; /* Espacement bien marqué entre Prénom et Nom */
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
}
.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* ============ Checkbox ============ */
.custom-control-label{
  color: rgba(243,244,246,.90);
  font-weight: 700;
}
.custom-control-input{
  accent-color: #FF006B;
}

/* ============ BOUTONS AVEC DÉGRADÉS PERSONNALISÉS ============ */
.btn.btn-primary{
  border: 0 !important;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
  background: linear-gradient(135deg, #FAA940, #f89310) !important;
  color: white;
  box-shadow: 0 10px 25px rgba(250, 169, 64, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.btn.btn-primary:hover{
  transform: translateY(-2px);
  background: linear-gradient(135deg, #FF006B, #dc0b63) !important;
  box-shadow: 0 12px 30px rgba(255, 0, 107, 0.4);
  filter: brightness(1.03);
}

/* effet “shine” */
.btn.btn-primary::after{
  content:"";
  position:absolute;
  top:-60%;
  left:-30%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: rotate(18deg);
  animation: shine 2.8s ease-in-out infinite;
  opacity: .9;
}
@keyframes shine{
  0%{ transform: translateX(-120%) rotate(18deg); opacity:0; }
  20%{ opacity:.9; }
  55%{ opacity:.25; }
  100%{ transform: translateX(320%) rotate(18deg); opacity:0; }
}

/* ============ Lien “Mot de passe oublié” ============ */
.forget{
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  padding: 10px 12px;
  text-align: center;
}

.forget a{
  color: rgba(243,244,246,.92);
  text-decoration: none;
}
.forget a:hover{
  text-decoration: underline;
}

/* ============ Alerts / Notices (SESSION) ============ */
.notice{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(243,244,246,.98);
  margin: 12px 0;
  text-align:left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}

/* barre latérale dégradée */
.notice::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width: 5px;
  background: linear-gradient(180deg, #FAA940, #dc0b63);
  opacity: .95;
}

.notice ul{
  margin: 8px 0 0;
  padding-left: 18px;
}

/* ==========================================================================
   STYLES SPÉCIFIQUES : DOUBLE FORMULAIRE DE CONNEXION / INSCRIPTION
   ========================================================================== */

.authincation-content.is-expanded {
    width: min(950px, 95vw);
}

.split-divider {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 30px;
}

/* Zone d'inscription : marges parfaitement équilibrées */
.register-section {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

/* On supprime le padding interne pour que les champs s'alignent parfaitement avec l'image */
.register-section .auth-form {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   INTÉGRATION DU BLOC IMAGE (Newsletter Visual)
   ========================================================================== */
.newsletter-visual {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-top: 20px; 
    margin-bottom: 20px;
    background: #0f1117; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 220px; 
}

.newsletter-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.newsletter-visual:hover .newsletter-img {
    opacity: 0.6;
    transform: scale(1.05); 
}

.newsletter-visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    padding: 20px;
    background: linear-gradient(to top, rgba(10,10,14, 0.95) 0%, rgba(10,10,14, 0.2) 60%, transparent 100%);
    text-align: center;
    z-index: 2;
}

.main-heading {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.text-mauve {
    color: #d00bf4; 
}

.newsletter-visual-overlay .description {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: rgba(243, 244, 246, 0.9);
    line-height: 1.4;
}

/* ==========================================================================
   STYLE SELECT & CHECKBOX
   ========================================================================== */

.register-section select.form-control,
.newsletter-form-wrapper select {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.40);
    color: #f3f4f6;
    outline: none;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.register-section select.form-control:focus,
.newsletter-form-wrapper select:focus {
    border-color: rgba(255, 0, 107, .70);
    box-shadow: 0 0 0 4px rgba(255,0,107,.16);
    transform: translateY(-1px);
}

.checkbox-wrapper {
    margin: 20px 0 25px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid rgba(255,255,255,.18);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-group input[type="checkbox"]:checked {
    background: #FF006B; 
    border-color: #FF006B;
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '✔';
    position: absolute;
    color: #fff;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-group label {
    text-transform: none;
    letter-spacing: 0;
    font-weight: normal;
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.5;
    cursor: pointer;
    color: rgba(243,244,246,.92);
    margin: 0;
}

/* Version Mobile : Empiler les formulaires proprement */
@media (max-width: 768px) {
    .split-divider {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .register-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ==========================================================================
   BOUTON BASCULE "ME CONNECTER"
   ========================================================================== */

.btn.btn-switch-login {
  margin-top : 15px;
  border: 0 !important;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .7px;
  /* Dégradé Rose vers Rose foncé */
  background: linear-gradient(135deg, #FF006B, #dc0b63) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(255, 0, 107, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.btn.btn-switch-login:hover {
  transform: translateY(-2px);
  /* Dégradé Rouge vers Rouge foncé au survol */
  background: linear-gradient(135deg, #da0a0e, #971012) !important;
  box-shadow: 0 12px 30px rgba(218, 10, 14, 0.4);
  filter: brightness(1.03);
}