/*
 * Page de connexion (wp-login.php) aux couleurs du site : papier, encre et
 * rouge de rubrique, Spectral et Atkinson Hyperlegible. Les couleurs reprennent
 * la palette de theme.json, qui n'est pas chargée sur cette page.
 */

@font-face {
	font-family: "Atkinson Hyperlegible";
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	font-weight: 700;
	font-style: normal;
	font-display: swap;
	src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
@font-face {
	font-family: Spectral;
	font-weight: 500;
	font-style: normal;
	font-display: swap;
	src: url("fonts/spectral-latin-500-normal.woff2") format("woff2");
}

body.login {
	background: #F4F6F8;
	color: #17212F;
	font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 1rem;
}

/* Le nom du site à la place du logo WordPress. */
.login h1 a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: auto;
	height: auto;
	margin: 0 0 24px;
	padding: 0;
	background: none;
	text-indent: 0;
	overflow: visible;
	font-family: Spectral, Georgia, "Times New Roman", serif;
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.2;
	color: #17212F;
	text-decoration: none;
}
.login h1 a::before {
	content: "";
	flex: none;
	width: 32px;
	height: 32px;
	background: url("icon.svg") no-repeat center / contain;
}

.login form,
.login .message,
.login .notice,
.login #login_error {
	border: 1px solid #D5DDE5;
	border-radius: 4px;
	box-shadow: none;
}
.login .message,
.login .notice,
.login #login_error {
	background: #FFFFFF;
	border-left: 3px solid #17212F;
	line-height: 1.5;
}
.login #login_error,
.login .notice-error {
	border-left-color: #A8261C;
}
.login .bn-login-note p + p {
	margin-top: 8px;
}

.login label {
	font-weight: 700;
	color: #17212F;
}
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	border: 1.5px solid #4B5566;
	border-radius: 4px;
	background: #FFFFFF;
	color: #17212F;
}

.login .button-primary,
.wp-core-ui .button-primary {
	min-height: 44px;
	padding: 0 20px;
	border: 1.5px solid #17212F;
	border-radius: 4px;
	background: #17212F;
	color: #FFFFFF;
	font-weight: 700;
	text-shadow: none;
	box-shadow: none;
}
.login .button-primary:hover,
.wp-core-ui .button-primary:hover,
.wp-core-ui .button-primary:focus {
	border-color: #2B3A50;
	background: #2B3A50;
	color: #FFFFFF;
}
.wp-core-ui .button-secondary,
.login .wp-hide-pw {
	color: #17212F;
}

.login a,
.login #nav a,
.login #backtoblog a {
	color: #17212F;
	text-decoration: underline;
}
.login a:hover,
.login #nav a:hover,
.login #backtoblog a:hover {
	color: #A8261C;
}

.login :is(a, button, input, select, textarea):focus-visible,
.login input:focus {
	outline: 2px solid #A8261C;
	outline-offset: 2px;
	border-color: #17212F;
	box-shadow: none;
}

.login input[type="checkbox"] {
	accent-color: #A8261C;
}
