/* =====================================================================
 * Écrans "Mon compte" déconnecté — connexion / inscription / mot de passe
 * oublié — reproduction fidèle de site internet/connexion.html,
 * inscription.html et mot-de-passe-oublie.html (même carte centrée sur
 * fond sombre, mêmes champs/tokens). Chargé uniquement sur la page Mon
 * compte quand l'utilisateur n'est PAS connecté (inc/enqueue.php) : la
 * version connectée (tableau de bord) reste stylée par myaccount.css.
 *
 * Les 3 maquettes ont un unique bloc <style> quasi identique : ce fichier
 * les fusionne en un seul jeu de classes partagé (.auth-*) plutôt que de
 * dupliquer 3 fois les mêmes règles.
 * ===================================================================== */

.auth-shell {
	position: relative;
	/* Même trick que .hero (front-page.css) : le body a un padding-top: var(--nav-h)
	   global (nav fixe) ; on l'annule ici pour que le fond sombre remonte sous la
	   nav, en ajustant min-height à 100vh (au lieu de 100vh - nav-h) pour occuper
	   le même espace qu'avant à l'écran. */
	margin-top: calc(-1 * var(--nav-h));
	min-height: 100vh;
	padding: 40px 20px 60px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.auth-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(ellipse 80% 60% at 70% 0%, #3a2800 0%, #1a1008 55%, #0a0a08 100%);
}
.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.auth-wrap.auth-wrap--wide { max-width: 480px; }
.auth-brand {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	font-family: var(--font-body); font-size: 19px; font-weight: 700;
	letter-spacing: .02em; text-transform: uppercase; color: var(--blanc);
	margin-bottom: 28px;
}
.auth-brand span { color: var(--blanc); }
.auth-brand .logo-orange { color: var(--orange); }
.auth-brand .logo-fr { color: var(--blanc); font-weight: 500; }

.auth-card { background: var(--blanc); border-radius: 8px; padding: 36px 34px 30px; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.auth-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; text-align: center; }
.auth-title {
	font-family: var(--font-display); font-size: 30px; font-weight: 800; text-transform: uppercase;
	letter-spacing: -.005em; color: var(--noir); text-align: center; margin-bottom: 8px; line-height: 1;
}
.auth-sub { font-size: 13.5px; color: var(--gris-mid); text-align: center; margin-bottom: 28px; line-height: 1.5; }

/* ---- Champs ---- */
.auth-card .form-group,
.auth-card p.form-row,
.auth-card p.woocommerce-form-row { display: flex; flex-direction: column; gap: 7px; margin: 0 0 18px; }
.form-label {
	font-size: 12px; font-weight: 600; color: var(--noir); text-transform: uppercase; letter-spacing: .03em;
	display: flex; align-items: center; justify-content: space-between;
}
.form-label a { font-size: 11.5px; font-weight: 500; color: var(--orange); text-transform: none; letter-spacing: 0; }
.form-label a:hover { text-decoration: underline; }
.input-wrap { position: relative; }
.input-wrap svg.field-icon {
	position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
	width: 16px; color: var(--gris-light); pointer-events: none;
}
.auth-card .form-input,
.auth-card input.input-text {
	width: 100%; padding: 12px 16px 12px 42px;
	border: 1px solid rgba(0,0,0,.13); border-radius: 6px;
	font-family: var(--font-body); font-size: 14px; color: var(--noir);
	background: var(--blanc); outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.auth-card .form-input::placeholder { color: var(--gris-light); }
.auth-card .form-input:focus,
.auth-card input.input-text:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,104,26,.12); }
.toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gris-mid); transition: color .2s; }
.toggle-pw:hover { color: var(--orange); }
.toggle-pw svg { width: 17px; }

.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.checkbox-row.align-top { align-items: flex-start; }
.checkbox-row.align-top .checkbox-box { margin-top: 1px; }
.checkbox-row input { display: none; }
.checkbox-box {
	width: 17px; height: 17px; border-radius: 4px; flex-shrink: 0;
	border: 1.5px solid rgba(0,0,0,.22);
	display: flex; align-items: center; justify-content: center;
	transition: background .2s, border-color .2s;
}
.checkbox-box svg { width: 10px; color: var(--blanc); opacity: 0; transition: opacity .15s; }
.checkbox-row input:checked + .checkbox-box { background: var(--orange); border-color: var(--orange); }
.checkbox-row input:checked + .checkbox-box svg { opacity: 1; }
.checkbox-label { font-size: 12.5px; color: var(--gris-mid); }
.checkbox-label a { color: var(--orange); text-decoration: underline; }
.link-inline { font-size: 12.5px; color: var(--orange); font-weight: 500; }
.link-inline:hover { text-decoration: underline; }

/* ---- Grille 2 colonnes (inscription : prénom / nom) ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ---- Chips type de compte (inscription) ---- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-option {
	display: flex; align-items: center; gap: 6px;
	padding: 9px 15px;
	border: 1.5px solid rgba(0,0,0,.13);
	border-radius: 40px;
	font-size: 12.5px; font-weight: 600; color: var(--gris-mid);
	transition: border-color .2s, color .2s, background .2s;
	cursor: pointer;
}
.chip-option:hover { border-color: rgba(232,104,26,.4); }
.chip-option.is-selected { border-color: var(--orange); background: rgba(232,104,26,.08); color: var(--orange-dk); }
.chip-option input { display: none; }

.btn-primary {
	width: 100%; padding: 14px; border-radius: 40px;
	background: var(--orange); color: var(--blanc);
	font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	transition: background .2s, transform .2s var(--ease);
	margin-bottom: 22px;
}
.btn-primary:hover { background: var(--orange-dk); transform: scale(1.015); }
.btn-primary svg { width: 15px; }

.auth-divider { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(0,0,0,.08); }
.auth-divider span { font-size: 11px; color: var(--gris-light); text-transform: uppercase; letter-spacing: .05em; }

.auth-switch { text-align: center; font-size: 13.5px; color: var(--gris-mid); }
.auth-switch a { color: var(--orange); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.auth-error {
	display: flex;
	align-items: flex-start; gap: 10px;
	background: #FBE9E4; border-left: 3px solid var(--rouge-badge);
	color: #7A2314; font-size: 12.5px; line-height: 1.5;
	padding: 12px 14px; border-radius: 4px; margin-bottom: 18px;
}
.auth-error svg { width: 15px; flex-shrink: 0; margin-top: 1px; }

.back-home { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; font-size: 12.5px; color: rgba(255,255,255,.4); position: relative; z-index: 1; }
.back-home:hover { color: rgba(255,255,255,.7); }
.back-home svg { width: 13px; }

/* ---- État confirmation (mot de passe oublié) ---- */
.success-state { text-align: center; }
.success-icon {
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(59,109,17,.1); color: var(--vert-badge);
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 18px;
}
.success-icon svg { width: 26px; }
.success-email { font-weight: 700; color: var(--noir); }

/* Notices WooCommerce natives (erreurs de connexion/inscription) recolorées
   pour correspondre à .auth-error plutôt qu'au style WooCommerce par défaut. */
.auth-card .woocommerce-notices-wrapper .woocommerce-error,
.auth-card .woocommerce-NoticeGroup .woocommerce-error {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #FBE9E4;
	border-left: 3px solid var(--rouge-badge);
	color: #7A2314;
	font-size: 12.5px;
	line-height: 1.5;
	padding: 12px 14px;
	border-radius: 4px;
	margin: 0 0 18px;
}

@media (max-width: 480px) {
	.auth-card { padding: 30px 22px 26px; }
	.form-grid { grid-template-columns: 1fr; gap: 0; }
}
