/* Sign In page states: wrong password, unverified alert, modals, toast. */
:root {
	--si-blue: #0b4a8f;
	--si-text: #192647;
	--si-muted: #7a88a5;
	--si-red: #e5242f;
	--si-green: #1f9d5c;
	--si-warn-bg: #fff6e0;
	--si-warn-line: #f0c36d;
	--si-warn-text: #6b4600;
}

/* ----- 1. Wrong email or password: red password field + message under it ----- */
.wppb-user-forms .login-password.is-error input {
	border-color: var(--si-red) !important;
}

/* The form's own paragraph rules (centred, 25px below) are strong, so the position is set firmly: full width, left aligned. */
.wppb-user-forms .ipm-ln-msg,
.ipm-ln-msg {
	display: flex;
	align-items: flex-start;
	align-self: stretch;
	box-sizing: border-box;
	width: 100%;
	gap: 6px;
	margin: -10px 0 14px !important;
	padding: 0 !important;
	font-size: 12px;
	line-height: 1.5;
	text-align: left;
	color: var(--si-red);
}

.ipm-ln-msg[hidden] {
	display: none;
}

.ipm-ln-msg-ico {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-top: 1px;
	border-radius: 50%;
	background: var(--si-red);
	position: relative;
}

.ipm-ln-msg-ico:before,
.ipm-ln-msg-ico:after {
	content: "";
	position: absolute;
	left: 6px;
	width: 2px;
	background: #fff;
	border-radius: 1px;
}

.ipm-ln-msg-ico:before {
	top: 3px;
	height: 5px;
}

.ipm-ln-msg-ico:after {
	top: 9.5px;
	height: 2px;
}

.ipm-ln-msg a.ipm-ln-reset {
	font-weight: 700;
	color: var(--si-blue);
	text-decoration: underline;
}

/* ----- 2. Unverified account: warning alert above the fields ----- */
.ipm-alert {
	display: flex;
	align-self: stretch;
	box-sizing: border-box;
	gap: 12px;
	margin: 0 0 16px;
	text-align: left;
	padding: 12px 14px;
	border: 1px solid var(--si-warn-line);
	border-radius: 8px;
	background: var(--si-warn-bg);
	color: var(--si-warn-text);
	font-size: 13px;
	line-height: 1.5;
}

.ipm-alert-ico {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border-radius: 50%;
	background: #d98a00;
	position: relative;
}

.ipm-alert-ico:before,
.ipm-alert-ico:after {
	content: "";
	position: absolute;
	left: 8px;
	width: 2px;
	background: #fff;
	border-radius: 1px;
}

.ipm-alert-ico:before {
	top: 4px;
	height: 6px;
}

.ipm-alert-ico:after {
	top: 12px;
	height: 2px;
}

.ipm-alert-body strong {
	display: block;
	margin-bottom: 2px;
	font-size: 14px;
	color: var(--si-warn-text);
}

.ipm-alert-body span {
	display: block;
}

.ipm-alert-link {
	display: inline-block;
	margin-top: 6px;
	font-weight: 700;
	color: var(--si-blue);
	text-decoration: underline;
	cursor: pointer;
}

.ipm-alert-link.is-busy {
	opacity: 0.5;
	pointer-events: none;
}

/* ----- 3 + 4. Modals ----- */
body.ipm-md-open {
	overflow: hidden;
}

.ipm-md {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(25, 38, 71, 0.55);
}

.ipm-md-card {
	width: 100%;
	max-width: 420px;
	padding: 32px 28px 28px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 60px rgba(25, 38, 71, 0.35);
	text-align: center;
	color: var(--si-text);
}

.ipm-md-ico {
	display: block;
	position: relative;
	width: 56px;
	height: 56px;
	margin: 0 auto 14px;
	border-radius: 50%;
}

.ipm-md-ico--ok {
	background: #e6f6ee;
}

.ipm-md-ico--ok:after {
	content: "";
	position: absolute;
	left: 20px;
	top: 14px;
	width: 11px;
	height: 20px;
	border: solid var(--si-green);
	border-width: 0 4px 4px 0;
	transform: rotate(45deg);
}

.ipm-md-ico--warn {
	background: var(--si-warn-bg);
}

.ipm-md-ico--warn:before,
.ipm-md-ico--warn:after {
	content: "";
	position: absolute;
	left: 26px;
	width: 4px;
	border-radius: 2px;
	background: #d98a00;
}

.ipm-md-ico--warn:before {
	top: 14px;
	height: 18px;
}

.ipm-md-ico--warn:after {
	top: 36px;
	height: 5px;
}

.ipm-md-tag {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 20px;
	background: #e6f6ee;
	color: var(--si-green);
	font-size: 12px;
	font-weight: 600;
}

.ipm-md-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--si-blue);
}

.ipm-md-text {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--si-muted);
}

.ipm-md-form {
	text-align: left;
}

.ipm-md-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--si-text);
}

.ipm-md-form input {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 44px;
	margin: 0 0 6px;
	padding: 0 14px;
	border: 1.5px solid #ebeef5;
	border-radius: 5px;
	background: #ebeef5;
	font-size: 14px;
	color: var(--si-text);
}

.ipm-md-form input.is-error {
	border-color: var(--si-red);
}

.ipm-md-err {
	margin: 0 0 10px;
	font-size: 12px;
	color: var(--si-red);
}

.ipm-md-err[hidden] {
	display: none;
}

.ipm-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	height: 46px;
	margin: 10px 0 0;
	padding: 0 !important;
	border: 0;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1 !important;
	text-align: center;
	cursor: pointer;
}

.ipm-btn--primary {
	background: linear-gradient(90deg, #b455e0 0%, #1f5aa6 100%);
	color: #fff;
}

.ipm-btn--ghost {
	background: #fff;
	border: 1.5px solid var(--si-blue);
	color: var(--si-blue);
}

.ipm-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

/* ----- 5. Toast ----- */
.ipm-tt {
	position: fixed;
	top: 24px;
	left: 50%;
	z-index: 100001;
	max-width: calc(100vw - 32px);
	padding: 12px 18px;
	border-radius: 8px;
	background: var(--si-text);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	box-shadow: 0 6px 24px rgba(25, 38, 71, 0.3);
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ipm-tt.is-open {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ipm-tt.is-ok:before {
	content: "\2713";
	display: inline-block;
	margin-right: 8px;
	color: #7be0a8;
	font-weight: 700;
}

.ipm-tt.is-error {
	background: var(--si-red);
}
