/* Login with eID — two-column card: credentials left, alternative methods right */
.login-eid {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	text-align: left;
	color: #2249a5;
}

.login-eid-card {
	overflow: hidden;
	border: 1px solid #d9e3ee;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(6, 28, 57, 0.12);
}

.login-eid-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 0 2.5em;
	padding: 2.5em 2.75em;
}

.login-eid-main {
	display: flex;
	flex-direction: column;
}

/* Browsers provide their own password reveal; drop the eye toggle site.js appends */
.login-eid .fa-eye {
	display: none;
}

.login-eid-main #v2LoginBtn {
	margin-top: 0.5em;
}

/* Shown while Turnstile verifies in the background; hidden once captchaReady() removes .captcha from the button */
.login-eid-captcha-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	margin: 0 0 0.75em;
	font-size: 0.8em;
	color: #64748b;
}

.login-eid-captcha-status:has(+ #v2LoginBtn:not(.captcha)) {
	display: none;
}

.login-eid-spinner {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	border: 1.5px solid #d6e1ec;
	border-top-color: #1d61a1;
	border-radius: 50%;
	animation: loginEidSpin 0.8s linear infinite;
}

@keyframes loginEidSpin {
	to {
		transform: rotate(360deg);
	}
}

/* "or" divider */
.login-eid-or {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75em;
	color: #8a9ab0;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.login-eid-or::before,
.login-eid-or::after {
	content: "";
	flex: 1;
	width: 1px;
	background: #e2e9f1;
}

/* Alternative methods */
.login-eid-heading {
	margin: 0 0 1.25em;
	font-size: 1.1em;
	font-weight: 400;
	color: #2c3e50;
}

.login-eid-methods {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

.login-eid-method {
	height: auto;
	min-height: 76px;
	gap: 0.9em;
	justify-content: space-between;
	padding: 0.85em 1em;
	border: 1.5px solid #dde6ef;
	border-radius: 12px;
	background: #fff;
	color: #2c3e50;
	text-align: left;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.login-eid-method:hover,
.login-eid-method:focus-visible {
	border-color: #1d61a1;
	background: #f7fafd;
	color: #2c3e50;
}

.login-eid-method-icon {
	display: grid;
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	place-items: center;
	color: #1d61a1;
}

.login-eid-method-icon svg {
	width: 44px;
	height: 44px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.login-eid-method-text {
	flex: 1;
}

.login-eid-method-text strong {
	font-size: 0.95em;
	color: #1d61a1;
}

.login-eid-method-arrow {
	display: grid;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	place-items: center;
	border-radius: 8px;
	background: #eef4fa;
	color: #1d61a1;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.login-eid-method:hover .login-eid-method-arrow {
	background: #1d61a1;
	color: #fff;
	transform: translateX(3px);
}

/* Footer: password reset + registration */
.login-eid-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5em;
	padding: 1.25em 2.75em;
	border-top: 1px solid #e8eef4;
	background: #f7fafd;
}

.login-eid-forgot {
	margin: -0.5em 0 1em;
	font-size: 0.85em;
	text-align: right;
}

.login-eid-forgot a {
	font-weight: 600;
	color: #1d61a1;
}

.login-eid-links {
	display: flex;
	align-items: center;
	gap: 0.75em;
	font-size: 0.9em;
}

.login-eid-links .btn {
	width: auto;
	height: 34px;
	padding: 0 1em;
	font-size: 0.9em;
}

.login-eid-note {
	display: flex;
	align-items: center;
	gap: 0.5em;
	font-size: 0.75em;
	white-space: nowrap;
	color: #64748b;
}

.login-eid-note svg {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Narrow desktop windows: stack the columns */
@media (max-width: 991.98px) {
	.login-eid-columns {
		grid-template-columns: minmax(0, 1fr);
		padding: 2em 1.5em;
	}

	.login-eid-or {
		flex-direction: row;
		margin: 1.75em 0;
	}

	.login-eid-or::before,
	.login-eid-or::after {
		width: auto;
		height: 1px;
	}

	.login-eid-note {
		white-space: normal;
	}

	.login-eid-foot {
		flex-direction: column;
		align-items: stretch;
		padding: 1.25em 1.5em;
	}
}
