/* RECENTRE — branded login screen (wp-login.php).
   Calm, healthcare-friendly styling matching the Hub / Habit Tracker language:
   soft sage page, white rounded card, Inter, brand greens. Covers sign-in,
   lost-password, set-password (welcome-email reset links) and logged-out views. */

body.login.recentre-login {
	background: #f4f7f5;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #2b352f;
	-webkit-font-smoothing: antialiased;
}

/* ---- Brand mark: sprout icon + RECENTRE wordmark ---- */
.login.recentre-login h1 a {
	width: auto;
	height: auto;
	margin: 0 auto 6px;
	padding-top: 78px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7a59' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='11.2' fill='%23eef6f1' stroke='none'/%3E%3Cg transform='translate(4.8 4.8) scale(0.6)'%3E%3Cpath d='M14 9.536V7a4 4 0 0 1 4-4h1.5a.5.5 0 0 1 .5.5V5a4 4 0 0 1-4 4 4 4 0 0 0-4 4c0 2 1 3 1 5a5 5 0 0 1-1 3'/%3E%3Cpath d='M4 9a5 5 0 0 1 8 4 5 5 0 0 1-8-4'/%3E%3Cpath d='M5 21h14'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 64px 64px;
	background-position: top center;
	background-repeat: no-repeat;
	text-indent: 0;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: .16em;
	color: #2b352f;
	text-decoration: none;
	line-height: 1.2;
	outline-offset: 4px;
}
.login.recentre-login h1 a:hover,
.login.recentre-login h1 a:focus {
	color: #3f7a59;
}
/* Sub-brand line under the wordmark */
.login.recentre-login h1::after {
	content: "Wellbeing Hub";
	display: block;
	text-align: center;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: #8a948e;
}

/* ---- Card ---- */
.login.recentre-login form {
	background: #ffffff;
	border: 1px solid #e7ece9;
	border-radius: 22px;
	box-shadow: 0 12px 34px rgba(63, 122, 89, .07);
	padding: 30px 30px 28px;
	/* matches the message tile's top margin so the spacing above and below a
	   notice tile reads the same (Micki 9 Jul polish pass) */
	margin-top: 20px;
}
.login.recentre-login #login {
	padding-top: 6vh;
}

/* ---- Fields ---- */
.login.recentre-login form label {
	font-size: 13.5px;
	font-weight: 500;
	color: #2b352f;
}
.login.recentre-login input[type="text"],
.login.recentre-login input[type="email"],
.login.recentre-login input[type="password"] {
	border: 1px solid #e7ece9;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14.5px;
	font-family: inherit;
	color: #2b352f;
	background: #fcfdfc;
	box-shadow: none;
	margin-top: 4px;
}
.login.recentre-login input[type="text"]:focus,
.login.recentre-login input[type="email"]:focus,
.login.recentre-login input[type="password"]:focus {
	border-color: #5fa87e;
	box-shadow: 0 0 0 3px rgba(95, 168, 126, .18);
	outline: none;
}
.login.recentre-login .wp-hide-pw {
	color: #8a948e;
}
.login.recentre-login .forgetmenot label {
	font-weight: 400;
	font-size: 13px;
	color: #8a948e;
}
.login.recentre-login input[type="checkbox"] {
	border: 1px solid #cfd8d2;
	border-radius: 4px;
}
.login.recentre-login input[type="checkbox"]:checked {
	background: #3f7a59;
	border-color: #3f7a59;
}
.login.recentre-login input[type="checkbox"]:focus {
	box-shadow: 0 0 0 2px rgba(95, 168, 126, .25);
}

/* ---- Primary button ---- */
.login.recentre-login .button-primary {
	width: 100%;
	height: auto;
	margin-top: 14px;
	float: none;
	background: #3f7a59;
	border: 0;
	border-radius: 10px;
	/* extra bottom padding so the label sits comfortably centred and the "g"
	   descender in "Log In" has room below it */
	padding: 12px 18px 15px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.5;
	color: #ffffff;
	text-shadow: none;
	box-shadow: none;
	transition: background-color .15s ease;
}
.login.recentre-login .button-primary:hover,
.login.recentre-login .button-primary:focus {
	background: #2f5c44;
	box-shadow: none;
}
.login.recentre-login .button-primary:focus {
	outline: 2px solid #5fa87e;
	outline-offset: 2px;
}
/* WP submit row sizing */
.login.recentre-login p.submit {
	margin-top: 4px;
}

/* ---- Messages / errors ----
   One shared tile style for every login notice (welcome message, password-set
   confirmation, errors): symmetric internal padding so the text sits vertically
   centred, and a 20px gap above the tile matching the form's 20px top margin
   below it. */
.login.recentre-login .notice,
.login.recentre-login .message,
.login.recentre-login #login_error {
	border: 1px solid #e7ece9;
	border-left: 4px solid #5fa87e;
	border-radius: 10px;
	background: #ffffff;
	color: #2b352f;
	box-shadow: 0 6px 18px rgba(63, 122, 89, .05);
	font-size: 13.5px;
	line-height: 1.55;
	padding: 14px 16px;
	margin: 20px 0 0;
}
.login.recentre-login #login_error,
.login.recentre-login .notice-error {
	border-left-color: #c0563f;
}
.login.recentre-login .recentre-login__welcome {
	text-align: center;
	color: #8a948e;
	border: 0;
	background: transparent;
	box-shadow: none;
	margin-bottom: 0;
	padding: 0 0 2px;
}
.login.recentre-login #login_error a,
.login.recentre-login .message a,
.login.recentre-login .notice a {
	color: #3f7a59;
}

/* ---- Below-card links ("Forgot your password…", "← Go to…") ---- */
.login.recentre-login #nav,
.login.recentre-login #backtoblog {
	text-align: center;
	font-size: 13px;
	padding: 0;
	margin: 18px 0 0;
}
.login.recentre-login #backtoblog {
	margin-top: 8px;
}
.login.recentre-login #nav a,
.login.recentre-login #backtoblog a {
	color: #8a948e;
	text-decoration: none;
	transition: color .15s ease;
}
.login.recentre-login #nav a:hover,
.login.recentre-login #backtoblog a:hover,
.login.recentre-login #nav a:focus,
.login.recentre-login #backtoblog a:focus {
	color: #3f7a59;
}

/* ---- Password fields: show/hide eye INSIDE the field, dead-centred ----
   One rule for BOTH the sign-in and set-password screens. The field gets a
   fixed 44px height so the centring is deterministic; the eye is a 44px-tall
   flex-centred overlay anchored to the input's box (the set-password .wp-pwd
   also contains the strength row below, so anchoring to a fixed input height —
   not the container — is what keeps the icon from drifting low or outside). */
.login.recentre-login .user-pass1-wrap label { display: block; }
.login.recentre-login .wp-pwd {
	position: relative;
	display: block;
}
.login.recentre-login .wp-pwd input[type="password"] {
	width: 100%;
	height: 44px;
	box-sizing: border-box;
	padding-right: 44px; /* text never runs under the eye */
}
.login.recentre-login .wp-pwd .wp-hide-pw,
.login.recentre-login .wp-pwd .button.wp-hide-pw {
	position: absolute;
	right: 2px;
	top: 4px; /* the input's own top margin */
	width: 40px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #8a948e;
}
.login.recentre-login .wp-pwd .wp-hide-pw:hover,
.login.recentre-login .wp-pwd .wp-hide-pw:focus { color: #3f7a59; }
.login.recentre-login .wp-pwd .wp-hide-pw .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}

/* "Generate Password" removed (owner, 9 Jul): participants choose their own
   password — the pre-generated option confused the create-password flow. WP
   injects the button via JS, so it is hidden here; the set-password form and
   strength meter are untouched. */
.login.recentre-login .wp-generate-pw {
	display: none !important;
}

/* Strength label: its own row below the password field (normal block flow now
   that the eye is an absolute overlay), small even field → strength → hint
   spacing. */
.login.recentre-login #pass-strength-result {
	display: block;
	margin: 8px 0 0;
	border-radius: 10px;
	border: 1px solid #e7ece9;
	background: #fcfdfc;
	font-family: inherit;
	font-size: 12.5px;
	text-align: center;
	padding: 8px 12px;
}
.login.recentre-login #pass-strength-result.short,
.login.recentre-login #pass-strength-result.bad { border-color: #e6b8ad; background: #fcf3f1; }
.login.recentre-login #pass-strength-result.good { border-color: #d9c48a; background: #fbf7ea; }
.login.recentre-login #pass-strength-result.strong { border-color: #a9d3bc; background: #eef7f1; }

/* Weak-password confirm: checkbox and label on ONE line, vertically aligned. */
.login.recentre-login .pw-weak {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	font-size: 13px;
	color: #8a948e;
}
.login.recentre-login .pw-weak .pw-checkbox { margin: 0; flex: 0 0 auto; }
.login.recentre-login .pw-weak label { margin: 0; font-weight: 400; font-size: 13px; color: #8a948e; }

.login.recentre-login .indicator-hint { font-size: 12.5px; color: #8a948e; margin: 8px 0 0; }

/* Button column: even 10px rhythm, both actions full width — Generate stays the
   quieter outlined secondary with symmetric padding and a centred label. */
.login.recentre-login p.reset-pass-submit {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
}
.login.recentre-login .reset-pass-submit .button-primary { margin: 0; }

/* ---- Footer privacy link row WP adds ---- */
.login.recentre-login .privacy-policy-page-link {
	font-size: 12px;
}
.login.recentre-login .privacy-policy-page-link a {
	color: #aab2ad;
}

/* ---- Small screens ---- */
@media (max-width: 480px) {
	.login.recentre-login #login {
		padding-top: 4vh;
		width: auto;
		margin: 0 16px;
	}
	.login.recentre-login form {
		padding: 22px 18px 20px;
		border-radius: 18px;
	}
}
