/* Mes notes – page de connexion
   Reprend la mise en page des pages du site (thème GeneratePress) :
   bandeau gris en haut, bloc blanc sur fond gris clair, pied de page blanc. */

:root {
	--mn-fond: #f7f8f9;          /* fond des pages */
	--mn-bloc: #ffffff;          /* blocs de contenu */
	--mn-texte: #222222;
	--mn-bandeau: #636363;       /* bandeau « Mes notes » */
	--mn-accent: #1e73be;        /* liens et bouton bleu de l'accueil */
	--mn-accent-fonce: #185f9d;
	--mn-champ-fond: #fafafa;
	--mn-champ-bord: #cccccc;
	--mn-champ-texte: #666666;
	--mn-police: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

/* ---------- Base ---------- */

body.login {
	background: var(--mn-fond);
	color: var(--mn-texte);
	font-family: var(--mn-police);
	font-size: 17px;
	line-height: 1.5;
	min-height: 100vh;
}

body.login a {
	color: var(--mn-accent);
}

body.login a:hover,
body.login a:focus {
	color: var(--mn-accent-fonce);
}

/* ---------- Bandeau du haut ---------- */

.mn-bandeau {
	background: var(--mn-bandeau);
	color: #fff;
	text-align: center;
	padding: 10px 30px;
}

.mn-bandeau__titre {
	margin: 0;
	font-size: 35px;
	line-height: 1.2;
	font-weight: 400;
	padding: 11px 0;
}

/* ---------- Bloc de contenu ---------- */

#login {
	box-sizing: border-box;
	width: calc(100% - 40px);
	max-width: 520px;
	margin: 20px auto;
	padding: 30px;
	background: var(--mn-bloc);
}

/* Logo WordPress : gardé pour les lecteurs d'écran, masqué à l'œil. */
.login h1.wp-login-logo {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.mn-titre {
	margin: 0 0 24px;
	font-size: 42px;
	line-height: 1.2;
	font-weight: 400;
	color: var(--mn-texte);
}

/* ---------- Formulaires ---------- */

.login form {
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	overflow: visible;
}

body.login form p,
body.login form .user-pass-wrap,
body.login #loginform > p,
body.login #loginform .user-pass-wrap,
body.login #lostpasswordform > p,
body.login #resetpassform > p {
	margin: 0 0 18px;
}

.login label {
	display: block;
	font-size: 17px;
	color: var(--mn-texte);
	margin-bottom: 6px;
}

.login form .input,
.login input[type="text"],
.login input[type="email"],
.login input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px 15px;
	min-height: 0;
	height: auto;
	font-size: 17px;
	font-family: var(--mn-police);
	line-height: 1.5;
	color: var(--mn-champ-texte);
	background: var(--mn-champ-fond);
	border: 1px solid var(--mn-champ-bord);
	border-radius: 0;
	box-shadow: none;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="email"]:focus,
.login input[type="password"]:focus {
	color: var(--mn-texte);
	background: #fff;
	border-color: #bfbfbf;
	box-shadow: none;
	outline: 2px solid var(--mn-accent);
	outline-offset: -1px;
}

/* Bouton « afficher le mot de passe » */
.login .wp-pwd {
	position: relative;
}

.login .wp-pwd .input {
	padding-right: 48px;
}

.login .button.wp-hide-pw {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mn-champ-texte);
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.login .button.wp-hide-pw:focus {
	outline: 2px solid var(--mn-accent);
	box-shadow: none;
}

.login .button.wp-hide-pw .dashicons {
	top: 0;
}

/* Se souvenir de moi */
body.login form .forgetmenot,
body.login #loginform .forgetmenot {
	display: flex;
	align-items: center;
	gap: 8px;
	float: none;
	margin: 0 0 22px;
}

.login .forgetmenot label {
	display: inline;
	margin: 0;
	font-size: 15px;
}

.login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--mn-accent);
}

/* Bouton principal : même style que les boutons de l'accueil */
body.login #loginform .submit,
body.login #lostpasswordform .submit,
body.login #resetpassform .submit,
.login .submit {
	margin: 0;
	padding: 0;
}

.login .button-primary,
.login .submit .button-primary {
	float: none;
	display: block;
	width: 100%;
	height: auto;
	min-height: 50px;
	padding: 10px 20px;
	font-family: var(--mn-police);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	background: var(--mn-accent);
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	text-shadow: none;
	cursor: pointer;
}

.login .button-primary:hover,
.login .button-primary:focus {
	color: #fff;
	background: var(--mn-accent-fonce);
	box-shadow: none;
}

.login .button-primary:focus-visible {
	outline: 2px solid var(--mn-accent-fonce);
	outline-offset: 2px;
}

.login .button:not(.button-primary):not(.wp-hide-pw) {
	border-radius: 10px;
}

/* ---------- Liens sous le formulaire ---------- */

.login #nav,
.login #backtoblog {
	margin: 20px 0 0;
	padding: 0;
	font-size: 15px;
	text-align: center;
}

.login #nav a,
.login #backtoblog a {
	color: var(--mn-accent);
	text-decoration: underline;
}

/* Le lien « Aller sur le site » ramènerait ici tant qu'on n'est pas connecté. */
.login.login-action-login #backtoblog {
	display: none;
}

/* ---------- Messages (erreur, déconnexion, e-mail envoyé) ---------- */

.login #login_error,
.login .message,
.login .notice,
.login .success {
	margin: 0 0 20px;
	padding: 12px 16px;
	font-size: 15px;
	color: var(--mn-texte);
	background: var(--mn-fond);
	border: 0;
	border-left: 4px solid var(--mn-accent);
	box-shadow: none;
}

.login #login_error,
.login .notice-error {
	border-left-color: #d63638;
}

.login .notice p {
	margin: 0;
}

/* ---------- Pied de page ---------- */

.mn-pied {
	margin-top: 0;
	padding: 20px 30px;
	background: var(--mn-bloc);
	color: var(--mn-texte);
	font-size: 15px;
	text-align: center;
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
	#login {
		width: 100%;
		margin: 20px 0;
		padding: 30px 20px;
	}

	.mn-bandeau__titre {
		font-size: 30px;
	}

	.mn-titre {
		font-size: 34px;
	}
}
