/* Connexion / inscription — Mon compte (visiteur) */

body.sp-auth {
	--sp-auth-fg: #151414;
	--sp-auth-muted: rgba(21, 20, 20, 0.55);
	--sp-auth-border: rgba(21, 20, 20, 0.2);
	--sp-auth-bg: #ffffff;
}

body.sp-auth .site-main {
	min-height: 0;
	background: var(--sp-auth-bg);
	padding: 0;
}

/* Spécificité > .entry-content > *:not(.alignwide):not(.alignfull) (theme.css) */
body.sp-auth .entry-content > *:not(.alignwide):not(.alignfull),
body.sp-auth .entry-content > .woocommerce,
body.sp-auth .entry-content > .woocommerce-notices-wrapper {
	margin-inline: 0;
	margin-top: 0;
	max-width: none;
	padding-inline: 0;
	width: 100%;
}

body.sp-auth .entry-content {
	max-width: none;
	padding: 0;
	width: 100%;
}

body.sp-auth .entry-content > * + * {
	margin-top: 0;
}

body.sp-auth .woocommerce {
	max-width: none;
	width: 100%;
}

body.sp-auth .woocommerce-notices-wrapper,
body.sp-auth .woocommerce-error,
body.sp-auth .woocommerce-message,
body.sp-auth .woocommerce-info {
	margin: 0 0 1.25rem;
}

body.sp-auth #footer-reveal-spacer,
body.sp-auth .footer-overlay,
body.sp-auth .site-footer {
	display: none !important;
}

.sp-auth-layout {
	color: var(--sp-auth-fg);
	display: grid;
	grid-template-columns: 1fr;
	min-height: calc(100vh - 4rem);
	min-height: calc(100dvh - 4rem);
}

@media (min-width: 1024px) {
	.sp-auth-layout {
		grid-template-columns: 1fr 1fr;
		height: calc(100vh - 4rem);
		height: calc(100dvh - 4rem);
		min-height: 0;
	}
}

.sp-auth-visual {
	background: #eceae7;
	display: none;
	overflow: hidden;
	position: relative;
}

.sp-auth-visual--mobile {
	display: block;
	height: 40vh;
	width: 100%;
}

.sp-auth-visual--desktop {
	display: none;
}

@media (min-width: 1024px) {
	.sp-auth-visual--mobile {
		display: none;
	}

	.sp-auth-visual--desktop {
		display: block;
	}
}

.sp-auth-visual img {
	height: 100%;
	left: 0;
	object-fit: cover;
	position: absolute;
	top: 0;
	width: 100%;
}

.sp-auth-panel {
	box-sizing: border-box;
	display: grid;
	justify-items: center;
	align-content: start;
	overflow-y: auto;
	padding: 3rem 1.5rem;
	scroll-padding-top: 1.5rem;
}

@media (min-width: 768px) {
	.sp-auth-panel {
		padding: 5rem 3rem;
	}
}

@media (min-width: 1024px) {
	.sp-auth-panel {
		min-height: 0;
		padding-left: 5rem;
		padding-right: 5rem;
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
}

.sp-auth-panel__inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	max-width: 28rem;
	width: 100%;
}

.sp-auth-section {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.sp-auth-section[hidden] {
	display: none !important;
}

.sp-auth-section__head {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.sp-auth-title {
	color: var(--sp-auth-fg);
	font-size: 0.75rem;
	font-weight: 300;
	letter-spacing: 0.25em;
	margin: 0;
	text-transform: uppercase;
}

.sp-auth-label {
	color: var(--sp-auth-fg);
	display: block;
	font-size: 0.875rem;
	font-weight: 300;
	margin-bottom: 0.5rem;
}

.sp-auth-label span {
	color: var(--sp-auth-muted);
}

.sp-auth-field {
	margin: 0;
}

.sp-auth-field + .sp-auth-field {
	margin-top: 1.25rem;
}

/* Espace maquette entre le dernier champ et le bouton (space-y-5) */
.sp-auth-layout form.woocommerce-form > .sp-auth-btn,
.sp-auth-layout form.woocommerce-form > button.sp-auth-btn {
	margin-top: 1.25rem;
}

.sp-auth-input {
	background: var(--sp-auth-bg);
	border: 1px solid var(--sp-auth-border);
	color: var(--sp-auth-fg);
	display: block;
	font-size: 0.875rem;
	font-weight: 300;
	letter-spacing: 0.02em;
	padding: 0.75rem 1rem;
	transition: border-color 0.3s ease;
	width: 100%;
}

.sp-auth-input::placeholder {
	color: rgba(21, 20, 20, 0.4);
}

.sp-auth-input:focus {
	border-color: var(--sp-auth-fg);
	outline: none;
}

.sp-auth-password {
	position: relative;
}

.sp-auth-password .sp-auth-input {
	padding-right: 2.75rem;
}

.sp-auth-password-toggle {
	background: transparent;
	border: 0;
	color: rgba(21, 20, 20, 0.5);
	cursor: pointer;
	padding: 0.25rem;
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	transition: color 0.2s ease;
}

.sp-auth-password-toggle:hover {
	color: var(--sp-auth-fg);
}

.sp-auth-link {
	background: transparent;
	border: 0;
	color: var(--sp-auth-muted);
	cursor: pointer;
	font-size: 0.6875rem;
	font-weight: 300;
	letter-spacing: 0.05em;
	padding: 0;
	text-decoration: none;
	transition: color 0.2s ease;
}

.sp-auth-link:hover,
a.sp-auth-link:hover {
	color: var(--sp-auth-fg);
}

.sp-auth-btn {
	align-items: center;
	background: var(--sp-auth-fg);
	border: 1px solid var(--sp-auth-fg);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 300;
	justify-content: center;
	letter-spacing: 0.25em;
	padding: 1rem 1.25rem;
	text-transform: uppercase;
	transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
	width: 100%;
}

.sp-auth-btn:hover {
	background: rgba(21, 20, 20, 0.85);
	border-color: rgba(21, 20, 20, 0.85);
}

.sp-auth-btn:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.sp-auth-divider {
	align-items: center;
	color: var(--sp-auth-muted, rgba(21, 20, 20, 0.55));
	display: flex;
	font-size: 0.6875rem;
	font-weight: 300;
	gap: 1rem;
	letter-spacing: 0.2em;
	margin: 0;
	text-transform: uppercase;
	width: 100%;
}

.sp-auth-divider::before,
.sp-auth-divider::after {
	background: var(--sp-auth-border, rgba(21, 20, 20, 0.2));
	content: "";
	flex: 1 1 auto;
	height: 1px;
}

.sp-auth-social {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
}

.sp-auth-btn--ghost {
	background: #fff;
	color: #151414;
	gap: 0.75rem;
	letter-spacing: 0.2em;
}

.sp-auth-btn--ghost:hover {
	background: rgba(21, 20, 20, 0.03);
	border-color: #151414;
}

.sp-auth-btn__icon {
	display: block;
	flex-shrink: 0;
	height: 1rem;
	width: 1rem;
}

.sp-auth-legal {
	color: rgba(21, 20, 20, 0.5);
	font-size: 0.6875rem;
	font-weight: 300;
	line-height: 1.6;
	margin: 0;
}

.sp-auth-legal a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s ease;
}

.sp-auth-legal a:hover {
	color: var(--sp-auth-fg);
}

.sp-auth-hint {
	color: var(--sp-auth-muted);
	font-size: 0.8125rem;
	font-weight: 300;
	line-height: 1.5;
	margin: 0;
}

.sp-auth-back {
	margin-bottom: 0.25rem;
}
