/* Maintelio — pages d'authentification : couche premium (connexion, inscription fournisseur…).
   Chargée après le style de base de auth/layout.blade.php ; chaque règle est préfixée .au-. */

/* Accessibilité */
.au-skip { position: absolute; left: -9999px; top: .6rem; z-index: 100; padding: .5rem .9rem; border-radius: 10px; background: #0b1f3a; color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none }
.au-skip:focus { left: .6rem }
.au-card:focus { outline: none }
.au-btn:focus-visible, .au-link:focus-visible, .au-eye:focus-visible, .au-chip:focus-visible, .au-check input:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px }

/* Volet de présentation : reste visible pendant que le formulaire défile */
@media (min-width: 1024px) {
  .au-hero { position: sticky; top: 0; height: 100vh; min-height: 0; align-self: start; overflow-y: auto; scrollbar-width: none }
  .au-hero::-webkit-scrollbar { display: none }
}

/* Champs sans icône : pas de retrait inutile à gauche */
.au-input { box-sizing: border-box }
.au-input-wrap:not(:has(> svg)) .au-input { padding-left: .9rem }
.au-input-wrap > .au-input.has-suffix { padding-right: 3.1rem }
.au-input::placeholder { color: #94a3b8 }

/* États de validation */
.au-input.is-invalid { border-color: #dc2626; background: #fffafa }
.au-input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220, 38, 38, .14) }
.au-input.is-valid { border-color: #16a34a }
.au-input.is-valid:focus { box-shadow: 0 0 0 4px rgba(22, 163, 74, .14) }
.au-ferr { margin: .35rem 0 0; font-size: .8rem; font-weight: 600; color: #b91c1c }
.au-ferr:empty { display: none }
.au-hint { margin: .35rem 0 0; font-size: .78rem; color: #64748b; line-height: 1.4 }
.au-hint.is-ok { color: #15803d; font-weight: 600 } .au-hint.is-warn { color: #b45309; font-weight: 600 }
.au-opt { font-weight: 500; color: #94a3b8; font-size: .78rem }
.au-req { color: #dc2626; margin-left: .15rem }

/* Envoi en cours */
.au-btn[aria-busy="true"] { opacity: .7; cursor: progress; transform: none }
.au-btn:disabled { cursor: not-allowed }

/* Bouton intégré au champ (afficher / générer) */
.au-inline-btn { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); height: 2.3rem; padding: 0 .65rem; display: inline-flex; align-items: center; gap: .3rem; border: 0; border-radius: 9px; background: #eff6ff; color: #1d4ed8; font-size: .76rem; font-weight: 700; cursor: pointer }
.au-inline-btn:hover { background: #dbeafe }

/* Force du mot de passe */
.au-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin-top: .55rem }
.au-meter i { height: .3rem; border-radius: 999px; background: #e2e8f0; transition: background .2s }
.au-meter[data-level="1"] i:nth-child(-n+1) { background: #ef4444 }
.au-meter[data-level="2"] i:nth-child(-n+2) { background: #f59e0b }
.au-meter[data-level="3"] i:nth-child(-n+3) { background: #84cc16 }
.au-meter[data-level="4"] i { background: #16a34a }
.au-rules { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .8rem; font-size: .77rem; color: #64748b }
.au-rules li::before { content: '○'; display: inline-block; width: 1.1rem; color: #94a3b8 }
.au-rules li.is-ok { color: #15803d } .au-rules li.is-ok::before { content: '✓'; color: #16a34a; font-weight: 800 }
@media (max-width: 480px) { .au-rules { grid-template-columns: 1fr } }

/* Progression du formulaire */
.au-progress { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.1rem; font-size: .78rem; font-weight: 650; color: #475569 }
.au-progress > span:first-child { flex: none }
.au-progress-bar { flex: 1; height: .35rem; border-radius: 999px; background: #e2e8f0; overflow: hidden }
.au-progress-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #1d4ed8, #16a34a); transition: width .25s }

/* Entreprise retrouvée via le SIRET */
.au-company { display: none; margin-top: .5rem; padding: .55rem .75rem; border-radius: 11px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: .82rem; line-height: 1.4 }
.au-company.is-on { display: block }
.au-company button { margin-left: .4rem; padding: 0; border: 0; background: none; color: #1d4ed8; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline }

/* Écran « e-mail envoyé » */
.au-done { text-align: center }
.au-done-ico { width: 4rem; height: 4rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 999px; background: #ecfdf5; color: #059669; font-size: 1.8rem }
.au-done h2 { margin: 0 0 .4rem; font-size: 1.15rem; font-weight: 800; color: #0f172a }
.au-done p { margin: .35rem 0; color: #475569; font-size: .9rem; line-height: 1.55 }
.au-done-mail { display: inline-block; margin: .5rem 0; padding: .35rem .8rem; border-radius: 999px; background: #f1f5f9; color: #0f172a; font-weight: 700; font-size: .88rem; word-break: break-all }
.au-done ol { margin: 1rem 0 0; padding: 0; list-style: none; text-align: left; display: grid; gap: .55rem }
.au-done ol li { display: flex; gap: .65rem; align-items: flex-start; font-size: .84rem; color: #475569 }
.au-done ol b { flex: none; width: 1.55rem; height: 1.55rem; display: grid; place-items: center; border-radius: 999px; background: #dbeafe; color: #1d4ed8; font-size: .78rem }
.au-done-actions { display: grid; gap: .55rem; margin-top: 1.3rem }

/* Dernière méthode de connexion utilisée */
.au-last { position: relative }
.au-last::after { content: 'Dernière utilisation'; position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); padding: .12rem .5rem; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; font-size: .66rem; font-weight: 800; letter-spacing: .02em }
.au-btn.au-last::after { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff }

/* Verrouillage temporaire (trop de tentatives) */
.au-lock { display: none; align-items: center; gap: .6rem; padding: .7rem .85rem; margin-bottom: 1rem; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .86rem }
.au-lock.is-on { display: flex }
.au-lock b { font-variant-numeric: tabular-nums }

/* Colonne « fournisseur » du volet de présentation */
.au-steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .7rem; max-width: 36rem; counter-reset: aust }
.au-steps li { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12) }
.au-steps li::before { counter-increment: aust; content: counter(aust); flex: none; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 999px; background: #fb923c; color: #0b1f3a; font-weight: 800; font-size: .85rem }
.au-steps strong { display: block; color: #fff; font-size: .9rem } .au-steps span { display: block; margin-top: .1rem; color: #cbd5e1; font-size: .78rem; line-height: 1.45 }
.au-perks { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .45rem; font-size: .86rem; color: #e2e8f0 }
.au-perks li::before { content: '✓'; margin-right: .5rem; color: #fdba74; font-weight: 800 }

@media (prefers-reduced-motion: reduce) { .au-progress-bar i, .au-meter i { transition: none } }

/* Largeur de la carte : les feuilles « enterprise » (v8/v9) imposent max-width:100% à tout <main> ; on garde ici la largeur prévue. */
.au-page .au-main .au-center main.au-card { width: 100%; max-width: 33rem }
