/*
 * Re-skins the native wp-login.php form to match the Penpot "Page de
 * connexion" design (same tokens as portal.css) - built on top of
 * WordPress's own auth markup, not a replacement for it. Only loaded on
 * the login screen (login_enqueue_scripts), never on the portal itself.
 */

:root {
	--gp-color-navy: #0e2a47;
	--gp-color-red: #c8102e;
	--gp-color-text-muted: #6e6e6e;
	--gp-color-border: #dddddd;
	--gp-font-heading: "Playfair Display", Georgia, serif;
	--gp-font-body: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

body.login {
	background: #f4f0e4;
	font-family: var(--gp-font-body);
}

body.login #login {
	width: 380px;
	padding: 0;
}

body.login h1 {
	text-align: center;
	margin-bottom: 16px;
}

body.login h1 a {
	background-image: none !important;
	width: auto;
	height: auto;
	text-indent: 0;
	font-family: var(--gp-font-heading);
	font-weight: 700;
	font-size: 22px;
	color: var(--gp-color-navy);
	display: block;
}

body.login #loginform {
	background: #ffffff;
	border-top: 5px solid var(--gp-color-red);
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(14, 42, 71, 0.12);
	padding: 32px 32px 24px;
}

body.login #loginform label {
	font-family: var(--gp-font-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--gp-color-navy);
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
	border: 1.5px solid var(--gp-color-border);
	border-radius: 4px;
	height: 44px;
	font-size: 15px;
	font-family: var(--gp-font-body);
	box-shadow: none;
}

body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus {
	border-color: var(--gp-color-navy);
	box-shadow: none;
}

body.login .wp-core-ui .button-primary {
	background: var(--gp-color-red);
	border: none;
	border-radius: 4px;
	height: 48px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	text-shadow: none;
	box-shadow: 0 6px 16px rgba(200, 16, 46, 0.3);
	width: 100%;
	float: none;
}

body.login .wp-core-ui .button-primary:hover,
body.login .wp-core-ui .button-primary:focus {
	background: var(--gp-color-navy);
	box-shadow: none;
}

body.login #nav,
body.login #backtoblog {
	text-align: center;
	font-family: var(--gp-font-body);
}

body.login #nav a,
body.login #backtoblog a {
	color: var(--gp-color-red);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

body.login form .forgetmenot {
	font-family: var(--gp-font-body);
	font-size: 13px;
	color: var(--gp-color-text-muted);
}

body.login #login_error,
body.login .message {
	border-radius: 6px;
	border-left-width: 4px;
	font-family: var(--gp-font-body);
}
