/**
 * Lighthouse OIDC SSO — login shortcode + forgot-password modal (basic styles).
 */

.lh-oidc-login-form .lh-oidc-login-msg.success {
	color: #0a6629;
}

.lh-oidc-login-form .lh-oidc-login-msg.error {
	color: #b32d2e;
}

.lh-oidc-login-form .lh-oidc-forgot-wrap {
	margin-top: 0.5rem;
}

.lh-oidc-login-form .lh-oidc-forgot-open {
	font-size: 0.9em;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
}

.lh-oidc-login-form .lh-oidc-forgot-open:hover,
.lh-oidc-login-form .lh-oidc-forgot-open:focus {
	text-decoration: none;
	outline: 1px dotted currentColor;
}

.lh-oidc-login-form .lh-oidc-resend-verify {
	cursor: pointer;
}

body.lh-oidc-modal-open {
	overflow: hidden;
}

/* Modal */
.lh-oidc-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.lh-oidc-modal.is-open {
	display: flex;
}

.lh-oidc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	cursor: pointer;
}

.lh-oidc-modal__box {
	position: relative;
	z-index: 1;
	background: #fff;
	color: #1d2327;
	max-width: 420px;
	width: 100%;
	padding: 1.25rem 1.5rem;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	box-sizing: border-box;
}

.lh-oidc-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #50575e;
	border-radius: 2px;
}

.lh-oidc-modal__close:hover,
.lh-oidc-modal__close:focus {
	background: #f0f0f1;
	color: #000;
}

.lh-oidc-modal__title {
	margin: 0 2rem 1rem 0;
	font-size: 1.15rem;
	font-weight: 600;
}

.lh-oidc-modal__field {
	margin-bottom: 1rem;
}

.lh-oidc-modal__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 500;
}

.lh-oidc-modal__field input[type="text"],
.lh-oidc-modal__field input[type="email"],
.lh-oidc-modal__field input[type="password"] {
	width: 100%;
	max-width: 100%;
	padding: 0.5rem 0.65rem;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.lh-oidc-modal__hint {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #50575e;
}

.lh-oidc-modal__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 1rem;
}

.lh-oidc-modal__actions .button.button-secondary {
	text-decoration: none;
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	line-height: 1.3;
	border-radius: 4px;
	box-sizing: border-box;
}

.lh-oidc-modal__submit {
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	cursor: pointer;
	border: 1px solid #2271b1;
	background: #2271b1;
	color: #fff;
	border-radius: 4px;
}

.lh-oidc-modal__submit:hover {
	background: #135e96;
	border-color: #135e96;
}

.lh-oidc-modal__submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.lh-oidc-modal__msg {
	margin: 0.75rem 0 0;
	min-height: 1.25em;
	font-size: 0.9rem;
}

.lh-oidc-modal__msg.is-success {
	color: #0a6629;
}

.lh-oidc-modal__msg.is-error {
	color: #b32d2e;
}
