/* saas-form.css — pages d'authentification (connexion, inscription, mot de passe)
   Style repris de index.html : Montserrat, vert #069e78 -> #17b978, cartes arrondies à ombre turquoise. */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

body.saas-auth {
  min-height: 100vh; margin: 0;
  background: #f7fafc !important;
  font-family: 'Montserrat', Arial, sans-serif; color: #1a2e2c;
}
body.saas-auth .page-header { background: transparent !important; }
body.saas-auth .page-header::before, body.saas-auth .page-header::after { display: none !important; }

/* Carte */
body.saas-auth .card, body.saas-auth .card.card-plain {
  background: #fff !important; border: 0 !important; border-radius: 22px !important;
  box-shadow: 0 4px 24px #b2f2e5 !important; padding: .6rem .4rem;
}
body.saas-auth .card-header { background: transparent; border: 0; }
body.saas-auth .card-header hr { border-color: #d6ece5; opacity: 1; }
body.saas-auth .card-header small, body.saas-auth .card-header h4, body.saas-auth .card-header h5 {
  color: #0a2e2c !important; font-weight: 700; letter-spacing: .3px;
}
body.saas-auth .card-footer { background: transparent; border: 0; }
body.saas-auth label, body.saas-auth .form-label, body.saas-auth .form-check-label {
  color: #0a2e2c; font-size: .8rem; font-weight: 700; letter-spacing: .3px;
}

/* Champs */
body.saas-auth .form-control, body.saas-auth .form-select {
  background: #f7fafc; border: 1.5px solid #d6ece5; border-radius: 14px;
  padding: .85rem 1.1rem; font-family: inherit; font-size: .95rem; color: #0a2e2c; box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
body.saas-auth .form-control::placeholder { color: #8fb1aa; font-weight: 400; }
body.saas-auth .form-control:focus, body.saas-auth .form-select:focus {
  background: #fff; border-color: #069e78; box-shadow: 0 0 0 4px rgba(6,158,120,.14); outline: 0;
}
body.saas-auth .form-check-input:checked { background-color: #069e78; border-color: #069e78; }
body.saas-auth .form-check-input:focus { box-shadow: 0 0 0 4px rgba(6,158,120,.14); border-color: #069e78; }

/* Bouton principal */
body.saas-auth .btn-primary, body.saas-auth button[type=submit] {
  background: #069e78 !important; color: #fff !important;
  border: 0 !important; border-radius: 28px !important; padding: 1rem 2rem; font-family: inherit;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .3px;
  box-shadow: 0 4px 16px rgba(6,158,120,.13) !important; transition: background .2s, transform .2s;
}
body.saas-auth .btn-primary:hover, body.saas-auth button[type=submit]:hover {
  background: #048f6b !important; transform: translateY(-2px) scale(1.02);
}

/* Liens */
body.saas-auth a, body.saas-auth .text-primary { color: #069e78 !important; font-weight: 700; text-decoration: none; }
body.saas-auth a:hover { color: #048f6b !important; text-decoration: underline; }
body.saas-auth .text-gradient { background: none !important; -webkit-text-fill-color: currentColor; }
body.saas-auth .card-footer p { color: #1a3a37; }

/* Logo */
body.saas-auth .card-header img { filter: drop-shadow(0 2px 12px #b2f2e5); }

/* Champs avec icône Bootstrap (gauche) et bouton œil (droite) */
body.saas-auth .input-icon { position: relative; }
body.saas-auth .input-icon .icon-left {
  position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%);
  color: #069e78; font-size: 1.05rem; pointer-events: none; z-index: 2;
}
body.saas-auth .input-icon .form-control { padding-left: 2.9rem; }
body.saas-auth .input-icon .form-control:focus ~ .icon-left,
body.saas-auth .input-icon:focus-within .icon-left { color: #17b978; }
body.saas-auth .input-icon .toggle-pass {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 2.4rem; height: 2.4rem; padding: 0; display: flex; align-items: center; justify-content: center;
  background: transparent !important; border: 0 !important; border-radius: 50% !important; box-shadow: none !important;
  color: #5f7f7a !important; font-size: 1.1rem; font-weight: 400; transition: color .2s, background .2s;
}
body.saas-auth .input-icon .toggle-pass:hover { color: #069e78 !important; background: #e6f9f2 !important; transform: translateY(-50%); }
body.saas-auth .input-icon .toggle-pass + * , body.saas-auth .input-icon input[type=password].form-control,
body.saas-auth .input-icon input#pass { padding-right: 3rem; }

/* ---- Mise en page en deux colonnes (page d'inscription) ---- */
body.saas-auth .auth-split { display: flex; min-height: 100vh; margin: 0 !important; }
body.saas-auth .auth-brand {
  flex: 1 1 52%; display: flex; flex-direction: column; justify-content: center;
  padding: 4rem clamp(2rem, 6vw, 6rem); color: #fff; position: relative; overflow: hidden;
  background: #069e78;
}
body.saas-auth .auth-brand > * { position: relative; z-index: 1; }
body.saas-auth .auth-logo { width: 230px; max-width: 60%; margin-bottom: 2.2rem; }
body.saas-auth .auth-brand h1 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; line-height: 1.2; color: #fff; margin: 0 0 1rem; letter-spacing: -.3px; }
body.saas-auth .auth-brand h1 span { color: #b2f2e5; }
body.saas-auth .auth-lead { font-size: 1.02rem; line-height: 1.7; color: rgba(255,255,255,.88); max-width: 34rem; margin-bottom: 2rem; }
body.saas-auth .auth-benefits { display: flex; gap: 1rem; flex-wrap: wrap; }
body.saas-auth .auth-benefit {
  display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 118px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 18px;
  padding: 1rem 1.1rem; font-weight: 700; font-size: .85rem; text-align: center;
  transition: transform .2s, background .2s;
}
body.saas-auth .auth-benefit i { font-size: 1.7rem; color: #b2f2e5; }
body.saas-auth .auth-benefit:hover { transform: translateY(-4px); background: rgba(255,255,255,.2); }

body.saas-auth .auth-panel { flex: 1 1 48%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.2rem; }
body.saas-auth .auth-card { width: 100%; max-width: 440px; padding: 1.4rem 1rem !important; }
body.saas-auth .auth-title { font-size: 1.6rem; font-weight: 800; color: #0a2e2c; margin: 0; }
body.saas-auth .auth-sub { color: #5f7f7a; font-size: .9rem; margin: .3rem 0 .6rem; }
body.saas-auth .auth-copy { margin-top: 1.2rem; color: #5f7f7a; }

@media (max-width: 900px) {
  body.saas-auth .auth-split { flex-direction: column; }
  body.saas-auth .auth-brand { padding: 2rem 1.4rem 2.4rem; flex: none; }
  body.saas-auth .auth-brand h1 { font-size: 1.6rem; }
  body.saas-auth .auth-lead { display: none; }
  body.saas-auth .auth-benefits { gap: .6rem; }
  body.saas-auth .auth-benefit { min-width: 0; flex: 1; padding: .7rem .5rem; font-size: .75rem; }
  body.saas-auth .auth-logo { margin-bottom: 1.2rem; width: 150px; }
  body.saas-auth .auth-panel { flex: none; padding: 1.5rem 1rem 2rem; margin-top: -1.2rem; }
}

/* ---- Page de texte (termes et conditions) ---- */
body.saas-auth .doc-wrap { max-width: 860px; margin: 0 auto; padding: 2rem 1.2rem 3rem; }
body.saas-auth .doc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
body.saas-auth .doc-head img { height: 54px; background: #fff; border-radius: 12px; padding: 6px 12px; }
body.saas-auth .doc-card { background: #fff; border-radius: 22px; box-shadow: 0 4px 24px #b2f2e5; padding: 2.2rem clamp(1.2rem, 4vw, 2.6rem); }
body.saas-auth .doc-card h1 { font-size: 1.7rem; font-weight: 800; color: #0a2e2c; margin: 0 0 .3rem; }
body.saas-auth .doc-card .doc-date { color: #5f7f7a; font-size: .85rem; margin-bottom: 1.6rem; }
body.saas-auth .doc-card h2 { font-size: 1.05rem; font-weight: 800; color: #069e78; margin: 1.8rem 0 .5rem; }
body.saas-auth .doc-card p, body.saas-auth .doc-card li { color: #1a2e2c; line-height: 1.75; font-size: .95rem; }
body.saas-auth .doc-card ul { padding-left: 1.2rem; }
body.saas-auth .doc-card .doc-note { background: #e6f9f2; border-radius: 14px; padding: .9rem 1.1rem; font-size: .88rem; margin-top: 2rem; }

/* Champ de saisie du code à 6 chiffres */
body.saas-auth .otp-input { text-align: center; font-size: 1.9rem; font-weight: 800; letter-spacing: .6rem; padding: .7rem .5rem .7rem 1.1rem; color: #0a2e2c; }
body.saas-auth .otp-input::placeholder { letter-spacing: .6rem; color: #b9d6cf; }

/* Message d'information sur la page de connexion (ex. session expirée) */
body.saas-auth .auth-alert { display: flex; gap: .6rem; align-items: flex-start; background: #fff7e6; border: 1px solid #ffe2a8; color: #7a5200; border-radius: 14px; padding: .75rem 1rem; font-size: .85rem; line-height: 1.45; margin-bottom: 1rem; }
body.saas-auth .auth-alert i { font-size: 1.1rem; margin-top: 1px; }

/* Page de connexion : logo centré, titre réduit de 5 px */
body.saas-auth .auth-brand-index .auth-logo { display: block; margin-left: auto; margin-right: auto; }
body.saas-auth .auth-brand-index h1 { font-size: clamp(calc(1.8rem - 5px), calc(3.2vw - 5px), calc(2.7rem - 5px)); }

/* Tous les formulaires d'authentification : arrondis réduits (carte 12 px, champs 8 px, bouton 10 px) */
body.saas-auth .auth-panel .card, body.saas-auth .auth-panel .card.card-plain { border-radius: 12px !important; }
body.saas-auth .auth-panel .form-control { border-radius: 8px; }
body.saas-auth .auth-panel .btn-primary, body.saas-auth .auth-panel button[type=submit] { border-radius: 10px !important; }
body.saas-auth .auth-panel .auth-alert { border-radius: 8px; }
body.saas-auth .auth-panel .input-icon .toggle-pass { border-radius: 8px !important; }

/* Tous les formulaires d'authentification : ombres réduites (carte légère, bouton sans halo) */
body.saas-auth .auth-panel .card, body.saas-auth .auth-panel .card.card-plain { box-shadow: 0 1px 6px rgba(10,46,44,.08) !important; }
body.saas-auth .auth-panel .btn-primary, body.saas-auth .auth-panel button[type=submit] { box-shadow: none !important; }
