/* PMBO custom login screen - rendered by templates/login.php inside the
   active theme, so it inherits the site header/footer. The card-style
   layout matches the wizard's auth gate so the change feels in-family. */

.pmbo-login {
	max-width: 480px;
	margin: 64px auto;
	padding: 0 16px;
}

.pmbo-login-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 32px 28px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.pmbo-login-title {
	margin: 0 0 6px;
	font-size: 1.6rem;
	text-align: center;
}

.pmbo-login-sub {
	margin: 0 0 20px;
	color: #4b5563;
	text-align: center;
}

.pmbo-login-notice,
.pmbo-login-error {
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 16px;
	font-size: 0.95rem;
}
.pmbo-login-notice { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pmbo-login-error  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pmbo-login-error p { margin: 0; }

.pmbo-login-social {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

/* Google Sign-In bounce button — shown on subsites where NSL isn't locally
   configured. Mirrors Google's branding guidelines (white bg, coloured
   logo, dark text, rounded pill). */
.pmbo-btn-google {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 24px;
	border: 1px solid #dadce0;
	border-radius: 999px;
	background: #fff;
	color: #3c4043;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s, box-shadow 0.15s;
	cursor: pointer;
}
.pmbo-btn-google:hover {
	background: #f8f9fa;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.pmbo-btn-google svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.pmbo-login-divider {
	position: relative;
	text-align: center;
	margin: 14px 0 18px;
	color: #9ca3af;
	font-size: 0.85rem;
}
.pmbo-login-divider::before,
.pmbo-login-divider::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 42%;
	height: 1px;
	background: #e5e7eb;
}
.pmbo-login-divider::before { left: 0; }
.pmbo-login-divider::after  { right: 0; }
.pmbo-login-divider span { background: #fff; padding: 0 8px; }

.pmbo-login-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.pmbo-login-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.95rem;
	color: #374151;
}

.pmbo-login-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 1rem;
	box-sizing: border-box;
}
.pmbo-login-field input:focus {
	outline: 2px solid #1d4ed8;
	outline-offset: 1px;
	border-color: #1d4ed8;
}

.pmbo-login-remember {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #4b5563;
}

.pmbo-login-submit {
	width: 100%;
	padding: 10px 14px;
	font-weight: 600;
	margin-top: 4px;
}

.pmbo-login-foot {
	margin: 18px 0 0;
	text-align: center;
	font-size: 0.9rem;
}
.pmbo-login-foot a { color: #1d4ed8; text-decoration: none; }
.pmbo-login-foot a:hover { text-decoration: underline; }

/* --- Tabs (sign in / create account) --- */
.pmbo-login-tabs {
display: flex;
gap: 6px;
margin: -8px 0 18px;
padding: 4px;
background: #f3f4f6;
border-radius: 10px;
}
.pmbo-login-tab {
flex: 1;
text-align: center;
padding: 8px 12px;
border-radius: 8px;
font-size: 0.95rem;
font-weight: 500;
color: #4b5563;
text-decoration: none;
transition: background .15s, color .15s;
}
.pmbo-login-tab.is-active {
background: #fff;
color: #111827;
box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}
.pmbo-login-tab:hover:not(.is-active) { color: #111827; }

/* --- Row (remember-me + forgot link on the login screen) --- */
.pmbo-login-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.pmbo-login-forgot-link {
font-size: 0.9rem;
color: #1d4ed8;
text-decoration: none;
}
.pmbo-login-forgot-link:hover { text-decoration: underline; }

/* --- OTP "we sent a code to {email}" line --- */
.pmbo-login-targetline {
margin: 0 0 4px;
font-size: 0.95rem;
color: #374151;
text-align: center;
}

/* --- Inline OTP fallback (subsites without SMTP) --- */
.pmbo-login-otp-inline {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
background: #fffbeb;
border: 1px dashed #fcd34d;
border-radius: 10px;
padding: 10px 14px;
margin-bottom: 14px;
}
.pmbo-login-otp-inline__label {
font-size: 0.85rem;
color: #92400e;
text-transform: uppercase;
letter-spacing: .04em;
}
.pmbo-login-otp-inline__code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 1.4rem;
font-weight: 700;
letter-spacing: .25em;
color: #78350f;
}

/* --- 6-digit code input --- */
.pmbo-login-otp {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 1.25rem;
letter-spacing: .35em;
text-align: center;
}

/* --- "Resend code" inline submit (looks like a link) --- */
.pmbo-login-resend {
margin: 8px 0 0;
text-align: center;
}
.pmbo-login-link {
background: none;
border: 0;
padding: 0;
color: #1d4ed8;
font-size: 0.9rem;
cursor: pointer;
text-decoration: underline;
}
.pmbo-login-link:hover { color: #1e3a8a; }
