/* Miroir RTL généré depuis auth.css (inc/lang-rtl.php), ne pas modifier. */


:root {
	--craft-auth-bg: #ffffff;
	--craft-auth-text: #12142b;
	--craft-auth-text-muted: #6b7280;
	--craft-auth-primary: #3b5bdb;
	--craft-auth-primary-dark: #2b46b8;
	--craft-auth-primary-light: #eef1fd;
	--craft-auth-border: #e2e5ee;
	--craft-auth-field-bg: #ffffff;
}

html, body.craft-auth-page {
	margin: 0 !important;
	padding: 0 !important;
	height: 100%;
	background: var(--craft-auth-bg);
}

.craft-auth-page {
	overflow: hidden; 
}


body.craft-auth-page.admin-bar {
	margin-top: 0 !important;
}
body.craft-auth-page #wpadminbar {
	display: none !important;
}

.craft-auth-page *,
.craft-auth-page *::before,
.craft-auth-page *::after {
	box-sizing: border-box;
}

.craft-auth-wrap {
	display: flex;
	height: 100vh;
	width: 100%;
	background: var(--craft-auth-bg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	overflow: hidden;
}

.craft-auth-left {
	flex: 0 0 50%;
	max-width: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 32px;
	height: 100%;
	overflow-y: auto; 
}

.craft-auth-form-box {
	width: 100%;
	max-width: 360px; 
}

.craft-auth-logo {
	margin-bottom: 32px;
}
.craft-auth-logo a {
	display: block;
	text-decoration: none;
	line-height: 0; 
}
.craft-auth-logo img {
	max-height: 80px; 
}
.craft-auth-logo span {
	font-size: 44px; 
	font-weight: 700;
	color: var(--craft-auth-text);
	line-height: normal;
}


@media (min-width: 900px) {
	.craft-auth-logo {
		position: fixed;
		top: 32px;
		right: 40px;
		margin-bottom: 0;
		z-index: 30;
	}

	
	.craft-auth-left {
		padding-top: 120px;
		align-items: flex-start;
	}
	.craft-auth-form-box {
		margin: auto 0;
	}
}


@media (max-width: 899px) {
	.craft-auth-logo {
		display: flex;
		justify-content: center;
		width: 100vw;
		position: relative;
		left: 50%;
		margin-right: -50vw;
	}
	
	.craft-auth-logo img {
		max-height: 80px;
	}
	.craft-auth-logo span {
		font-size: 44px;
	}
}

.craft-auth-title {
	font-size: 26px;
	font-weight: 800;
	color: var(--craft-auth-text);
	margin: 0 0 8px;
}
.craft-auth-subtitle {
	color: var(--craft-auth-text-muted);
	font-size: 14px;
	margin: 0 0 24px;
	line-height: 1.5;
}


.craft-auth-social {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 14px;
}
.craft-auth-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 46px;
	border: 1px solid var(--craft-auth-border);
	border-radius: 12px;
	background: #ffffff;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	color: var(--craft-auth-text);
	transition: background 0.15s ease, border-color 0.15s ease;
}
.craft-auth-social-btn:hover {
	background: #f7f8fc;
	border-color: #cfd4e6;
}
.craft-auth-social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.craft-auth-social-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}
.craft-auth-social-apple .craft-auth-social-icon svg {
	fill: var(--craft-auth-text);
}
.craft-auth-social-label {
	white-space: nowrap;
}

.craft-auth-separator {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--craft-auth-text-muted);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 12px 0;
}
.craft-auth-separator::before,
.craft-auth-separator::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid var(--craft-auth-border);
}
.craft-auth-separator span {
	padding: 0 12px;
}

.craft-auth-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.craft-auth-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--craft-auth-text);
	margin: 6px 0 -2px;
}
.craft-auth-label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 6px 0 -2px;
}
.craft-auth-label-row .craft-auth-label {
	margin: 0;
}


.craft-auth-field {
	position: relative;
	display: flex;
	align-items: center;
	border: 1px solid var(--craft-auth-border);
	border-radius: 10px;
	padding: 0 16px;
	height: 46px;
	background: var(--craft-auth-field-bg);
	transition: border-color 0.15s ease;
}
.craft-auth-field:focus-within {
	border-color: var(--craft-auth-primary);
}
.craft-auth-field input {
	flex: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	border: none;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
	font-size: 14px;
	background: transparent;
	color: var(--craft-auth-text);
}
.craft-auth-field input::placeholder {
	color: var(--craft-auth-text-muted);
}

.craft-auth-field input:-webkit-autofill,
.craft-auth-field input:-webkit-autofill:hover,
.craft-auth-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--craft-auth-text);
	-webkit-box-shadow: 0 0 0 1000px var(--craft-auth-field-bg) inset;
	box-shadow: 0 0 0 1000px var(--craft-auth-field-bg) inset;
	transition: background-color 9999s ease-in-out 0s;
}
.craft-auth-toggle-pw {
	cursor: pointer;
	color: var(--craft-auth-text-muted);
	margin-right: 8px;
	user-select: none;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.craft-auth-eye-icon {
	display: block;
}

.craft-auth-rules {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 16px;
	font-size: 11px;
	color: var(--craft-auth-text-muted);
	margin: 4px 0 4px;
}
.craft-auth-rules span {
	transition: color 0.15s ease;
}
.craft-auth-rules span.valid {
	color: #16a34a;
}

.craft-auth-forgot {
	font-size: 12px;
	color: var(--craft-auth-primary);
	text-decoration: none;
	font-weight: 600;
}
.craft-auth-forgot:hover {
	text-decoration: underline;
}

.craft-auth-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--craft-auth-text-muted);
	cursor: pointer;
	margin: 2px 0 4px;
	user-select: none;
}
.craft-auth-remember input {
	width: 16px;
	height: 16px;
	accent-color: var(--craft-auth-primary);
	cursor: pointer;
}

.craft-auth-terms {
	font-size: 11px;
	color: var(--craft-auth-text-muted);
	line-height: 1.5;
	margin: 0;
}
.craft-auth-terms a {
	color: var(--craft-auth-primary);
	text-decoration: underline;
}

.craft-auth-btn-primary {
	height: 46px;
	border: none;
	border-radius: 10px;
	background: var(--craft-auth-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 6px;
	transition: background 0.15s ease, transform 0.05s ease;
}
.craft-auth-btn-primary:hover {
	background: var(--craft-auth-primary-dark);
}
.craft-auth-btn-primary:active {
	transform: scale(0.99);
}
.craft-auth-btn-primary:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.craft-auth-switch {
	text-align: center;
	font-size: 13px;
	color: var(--craft-auth-text-muted);
	margin-top: 14px;
}
.craft-auth-switch a {
	color: var(--craft-auth-primary);
	font-weight: 700;
	text-decoration: none;
}
.craft-auth-switch a:hover {
	text-decoration: underline;
}

.craft-auth-back {
	display: inline-block;
	margin-top: 24px;
	font-size: 12px;
	color: var(--craft-auth-text-muted);
	text-decoration: none;
}
.craft-auth-back:hover {
	color: var(--craft-auth-text);
}

.craft-auth-message {
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 12px;
	margin-bottom: 16px;
}
.craft-auth-message.error {
	background: rgba(220, 38, 38, 0.08);
	color: #b91c1c;
}
.craft-auth-message.success {
	background: rgba(22, 163, 74, 0.08);
	color: #15803d;
}


.craft-auth-right {
	flex: 1;
	height: 100%;
	background-color: var(--craft-auth-primary-light);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: none;
}
.craft-auth-right-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--craft-auth-primary), var(--craft-auth-primary-dark));
}

@media (min-width: 900px) {
	.craft-auth-right {
		display: block;
	}
	
	.craft-auth-wrap {
		position: fixed;
		inset: 0;
	}
}

@media (max-width: 899px) {
	.craft-auth-page {
		overflow-y: auto; 
		overflow-x: hidden;
	}
	
	html, body.craft-auth-page {
		min-height: 0 !important;
	}
	.craft-auth-wrap {
		height: auto;
		
		min-height: 100vh;
		min-height: 100svh;
	}
	.craft-auth-left {
		flex: 1;
		max-width: 100%;
		padding: 28px 20px;
		overflow-y: visible;
		height: auto;
	}
	.craft-auth-form-box {
		max-width: 320px; 
	}
	
	.craft-auth-right,
	.craft-auth-right-placeholder {
		display: none !important;
		height: 0 !important;
	}
	
	body.craft-auth-page > [class*="whatsapp" i],
	body.craft-auth-page > [id*="whatsapp" i],
	body.craft-auth-page [class*="whatsapp-chat" i],
	body.craft-auth-page [class*="cookie-notice" i],
	body.craft-auth-page [id*="cookie-notice" i],
	body.craft-auth-page [class*="cookie-consent" i],
	body.craft-auth-page [class*="cookie-law" i] {
		display: none !important;
	}
}


.craft-auth-page .craft-auth-field input,
.craft-auth-page .craft-auth-field input:focus {
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}
