.title {
	margin-top: 3em;
	text-align: center;
}

.title h2 {
	font-size: 2em;
	margin-bottom: 0;
}

.login-v2 {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 400px;
	text-align: left;
	margin: 0 auto;
	color: #2249a5;
}

/* Error banner */
#v2ErrorBanner {
	display: none;
	padding: 0.8em 1em;
	margin-bottom: 1em;
	border: 1px solid #dc3545;
	border-radius: 6px;
	background: #fff5f5;
	color: #dc3545;
	font-size: 0.9em;
	text-align: center;
}

/* Fatal error panel (replaces progress when 2FA is unavailable) */
#v2FatalBanner {
	display: none;
	margin-top: 1.5em;
	padding: 2em 1.5em;
	border: 1px solid #dc3545;
	border-radius: 10px;
	background: #fff5f5;
	text-align: center;
}

#v2FatalBanner .fatal-icon {
	font-size: 2em;
	margin-bottom: 0.5em;
	color: #dc3545;
}

#v2FatalBanner .fatal-title {
	font-size: 1.1em;
	font-weight: 600;
	color: #333;
	margin-bottom: 0.5em;
}

#v2FatalBanner .fatal-detail {
	font-size: 0.9em;
	color: #666;
	line-height: 1.5;
}

#v2FatalBanner button {
	margin-top: 1em;
}

/* Interactive loading panel */
#loginV2Progress {
	display: none;
	margin-top: 1.8em;
	padding: 1.8em 2em;
	border: 1px solid #e8ecf1;
	border-radius: 12px;
	background: linear-gradient(135deg, #fbfcfd 0%, #f6f8fa 100%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}

#loginV2Progress h4 {
	margin: 0 0 1em 0;
	font-size: 1.05em;
	font-weight: 600;
	color: #2c3e50;
	letter-spacing: 0.01em;
}

.step {
	display: flex;
	align-items: center;
	gap: 0.75em;
	padding: 0.6em 0.7em;
	border-radius: 8px;
	font-size: 0.92em;
	color: #7f8c9b;
	transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.step+.step {
	margin-top: 1px;
}

.step .icon {
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 0.85em;
	border-radius: 50%;
	background: #edf0f3;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.step.done .icon {
	background: #e8f5e9;
	color: #2e7d32;
	transform: scale(1.05);
}

.step.error .icon {
	background: #fdecea;
	color: #c62828;
}

.step.active .icon {
	background: #e3f0fb;
	color: #1d61a1;
	animation: iconPulse 1.2s ease-in-out infinite;
}

.step.pending .icon {
	background: #edf0f3;
	color: #b0bcc8;
}

@keyframes iconPulse {

	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(29, 97, 161, 0.25);
	}

	50% {
		box-shadow: 0 0 0 6px rgba(29, 97, 161, 0.05);
	}
}

.step.done {
	color: #2e7d32;
	background: #f6fbf6;
}

.step.error {
	color: #c62828;
	background: #fef7f7;
}

.step.active {
	color: #1d61a1;
	font-weight: 500;
}

.step.pending {
	color: #b0bcc8;
}

.step .label {
	flex: 1;
	line-height: 1.3;
}

.step+.detail {
	display: block;
	width: 100%;
	margin-top: 0.3em;
	padding-left: 2.6em;
	font-size: 0.82em;
	color: #7f8c9b;
}

.step.error+.detail {
	font-size: 0.9em;
	font-weight: 600;
	color: #c62828;
}

/* OTP section inside progress */
#otpSection {
	display: none;
	margin-top: 1em;
	padding-top: 0.8em;
	border-top: 1px dashed #ccc;
	text-align: center;
}

#otpSection label {
	text-align: center;
}

/* OTP 4-box input */
.otp-input-group {
	display: flex;
	justify-content: center;
	gap: 0.6em;
}

.otp-input-group .otp-digit {
	width: 48px;
	height: 52px;
	padding: 0;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 1.3em;
	font-weight: 600;
	text-align: center;
	color: #1d61a1;
	background: #fff;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.otp-input-group .otp-digit:focus {
	border-color: #1d61a1;
	box-shadow: 0 0 0 3px rgba(29, 97, 161, 0.15);
}

#otpSection button {
	margin-top: 0.6em;
	width: 100%;
	max-width: 200px;
	margin-left: auto;
	margin-right: auto;
}

#otpResendBtn {
	margin-top: 0.4em;
	width: 100%;
	max-width: 200px;
	display: none;
	margin-left: auto;
	margin-right: auto;
}

/* Buttons disabled state */
form.signin.disabled input,
form.signin.disabled button,
form.signin.disabled .custom-checkbox {
	pointer-events: none;
	opacity: 0.6;
}

#otpError {
	color: #dc3545;
	font-size: 0.85em;
	margin-top: 0.3em;
	display: none;
}

#otpCounter {
	font-size: 0.85em;
	color: #666;
	margin-top: 0.3em;
}

.accordion>button {
	border: 0;
	cursor: pointer;
}

.accordion .content {
	padding: 15px 20px 20px;
}

.accordion .toggler:hover:after {
	filter: brightness(0) invert(1);
}

/* 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;
}

/* "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;
	}
}
