@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* =============================================
   CLIENT PASSWORD SCREENS (wp-login.php)
   Lost password · Set/reset password · Check your email.
   Loaded instead of wp-admin-login.css when
   bsa_is_client_password_screen() is true, so these
   screens match the /client-login/ page, not the
   dark administrator login.
   ============================================= */

body.login.bsa-client-password {
	background: #F4F5F7;
	font-family: 'PT Serif', -apple-system, BlinkMacSystemFont, 'Segoe UI', serif;
	color: #0F1F38;
	-webkit-font-smoothing: antialiased;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

body.bsa-client-password div#login {
	padding: 0;
	width: 420px;
	max-width: 92vw;
}

/* ── Logo band: navy, like the site header ── */

body.bsa-client-password div#login h1 {
	margin: 0;
	background: #0F1F38;
	border-radius: var(--bsa-radius, 10px) var(--bsa-radius, 10px) 0 0;
	padding: 1.75rem 1rem 1.25rem;
	text-align: center;
}

body.bsa-client-password div#login h1 a {
	/* The logo: Settings → Blue Silver Advisory → Footer Logo (set by the core plugin) */
	background-image: none !important;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	width: 260px !important;
	max-width: 100%;
	height: 72px !important;
	display: block;
	margin: 0 auto;
	font-size: 0 !important;
	color: transparent !important;
}

body.bsa-client-password div#login h1::after {
	content: 'Client Portal';
	display: block;
	margin-top: 0.75rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: #A8C4DE;
}

/* ── Messages ("Enter your new password…", "Check your email…") ── */

body.bsa-client-password .message,
body.bsa-client-password .notice,
body.bsa-client-password .success {
	margin: 0;
	padding: 1rem 2.5rem;
	background: #E8EDF2;
	border: 0;
	border-left: 0;
	border-radius: 0;
	box-shadow: none;
	color: #1A2E44;
	font-size: 0.95rem;
	line-height: 1.55;
}

body.bsa-client-password #login_error,
body.bsa-client-password .notice-error {
	margin: 0;
	padding: 1rem 2.5rem;
	background: #FDF2F2;
	border: 0;
	border-left: 3px solid #B42318;
	border-radius: 0;
	box-shadow: none;
	color: #7A1C14;
	font-size: 0.95rem;
}

body.bsa-client-password #login_error a,
body.bsa-client-password .message a {
	color: #2C5F8A;
}

/* ── Form card ── */

body.bsa-client-password form {
	margin: 0;
	padding: 2rem 2.5rem 2.25rem;
	background: #FFFFFF;
	border: 0;
	border-radius: 0 0 var(--bsa-radius, 10px) var(--bsa-radius, 10px);
	box-shadow: 0 8px 40px rgba(15, 31, 56, 0.12);
}

body.bsa-client-password form label,
body.bsa-client-password #pass1-label {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0F1F38;
	margin-bottom: 0.45rem;
	display: inline-block;
}

body.bsa-client-password form input[type="text"],
body.bsa-client-password form input[type="email"],
body.bsa-client-password form input[type="password"] {
	font-family: inherit;
	font-size: 1rem;
	color: #0F1F38;
	background: #FFFFFF;
	border: 1px solid #C9D3DE;
	border-radius: var(--bsa-radius, 10px);
	box-shadow: none;
	padding: 0.65rem 0.8rem;
	min-height: 46px;
}

body.bsa-client-password form input[type="text"]:focus,
body.bsa-client-password form input[type="email"]:focus,
body.bsa-client-password form input[type="password"]:focus {
	border-color: #2C5F8A;
	box-shadow: 0 0 0 2px rgba(44, 95, 138, 0.2);
	outline: none;
}

/* Show / hide password eye */
body.bsa-client-password .wp-hide-pw,
body.bsa-client-password .wp-hide-pw:focus {
	color: #2C5F8A;
	box-shadow: none;
}

/* Strength meter */
body.bsa-client-password #pass-strength-result {
	border-radius: 0 0 var(--bsa-radius, 10px) var(--bsa-radius, 10px);
	font-size: 0.85rem;
	font-weight: 700;
}

body.bsa-client-password .indicator-hint,
body.bsa-client-password .description {
	color: #6B7C8D;
	font-size: 0.82rem;
	line-height: 1.5;
}

/* Secondary button: "Generate Password" */
body.bsa-client-password .button:not(.button-primary):not(.wp-hide-pw) {
	font-family: inherit;
	color: #2C5F8A;
	background: #FFFFFF;
	border: 1px solid #2C5F8A;
	border-radius: var(--bsa-radius, 10px);
	box-shadow: none;
}

body.bsa-client-password .button:not(.button-primary):not(.wp-hide-pw):hover {
	background: #E8EDF2;
}

/* Primary button: "Save Password" / "Get New Password" */
body.bsa-client-password .submit {
	margin-top: 1.25rem;
}

body.bsa-client-password input[type="submit"].button-primary {
	float: none;
	width: 100%;
	min-height: 48px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	color: #FFFFFF;
	background: #0F1F38;
	border: 0;
	border-radius: var(--bsa-radius, 10px);
	box-shadow: none;
	text-shadow: none;
	transition: background 0.15s ease;
}

/* Same navy → blue hover as the /client-login/ button */
body.bsa-client-password input[type="submit"].button-primary:hover,
body.bsa-client-password input[type="submit"].button-primary:focus {
	background: #2C5F8A;
}

/* ── Links under the card ── */

body.bsa-client-password #nav,
body.bsa-client-password #backtoblog {
	margin: 1.25rem 0 0;
	padding: 0;
	text-align: center;
	font-size: 0.9rem;
}

body.bsa-client-password #nav a,
body.bsa-client-password #backtoblog a,
body.bsa-client-password .privacy-policy-page-link a {
	color: #2C5F8A;
	text-decoration: none;
}

body.bsa-client-password #nav a:hover,
body.bsa-client-password #backtoblog a:hover,
body.bsa-client-password .privacy-policy-page-link a:hover {
	color: #0F1F38;
	text-decoration: underline;
}

body.bsa-client-password .privacy-policy-page-link {
	margin-top: 1rem;
	text-align: center;
	font-size: 0.8rem;
}

/* Language switcher isn't used on this site */
body.bsa-client-password .language-switcher {
	display: none;
}
