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

.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);
}