/**
 * Login modal: tab switcher + captcha row (verification login).
 */
/* Sign up: full-width solid button via .btn-secondary (theme coral), distinct from .btn-primary Log in */
#modal-login .login-modal-signup-link.btn {
	display: block;
	width: 100%;
	text-align: center;
	text-decoration: none;
}

#modal-login .nav-tabs {
	border: none;
	gap: 0.35rem;
	padding: 0.3rem;
	background: #f1f4f8;
	border-radius: 0.5rem;
	margin-bottom: 1.25rem !important;
}

#modal-login .nav-tabs .nav-link {
	border: none;
	border-radius: 0.4rem;
	color: #5c6d7e;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.45rem 0.85rem;
	margin-bottom: 0;
	transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#modal-login .nav-tabs .nav-link:hover {
	color: #098dcf;
	background: rgba(9, 141, 207, 0.08);
}

#modal-login .nav-tabs .nav-link.active {
	color: #098dcf;
	background: #fff;
	box-shadow: 0 1px 3px rgba(20, 28, 37, 0.12);
}

/* Security check: input left, captcha image right (login + sign-up + forgot-password modals) */
#modal-login .login-captcha-row,
#modal-signup .login-captcha-row,
#modal-forgot-password .login-captcha-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
}

#modal-login #login-captcha-input,
#modal-signup #signup-captcha-input,
#modal-forgot-password #forgot-captcha-input {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	align-self: center;
}

#modal-login #login-captcha-img,
#modal-signup #signup-captcha-img,
#modal-forgot-password #forgot-captcha-img {
	height: 44px;
	width: auto;
	min-width: 128px;
	max-width: 200px;
	object-fit: contain;
	cursor: pointer;
	border-radius: 0.375rem;
	border: 1px solid #dee2e6;
	background: #fff;
	flex-shrink: 0;
	align-self: center;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

#modal-login #login-captcha-img:hover,
#modal-signup #signup-captcha-img:hover,
#modal-forgot-password #forgot-captcha-img:hover {
	border-color: #098dcf;
	box-shadow: 0 0 0 2px rgba(9, 141, 207, 0.2);
}

#modal-login #login-captcha-img:focus-visible,
#modal-signup #signup-captcha-img:focus-visible,
#modal-forgot-password #forgot-captcha-img:focus-visible {
	outline: none;
	border-color: #098dcf;
	box-shadow: 0 0 0 3px rgba(9, 141, 207, 0.35);
}

@media (max-width: 575.98px) {
	#modal-login .login-captcha-row,
	#modal-signup .login-captcha-row,
	#modal-forgot-password .login-captcha-row {
		flex-wrap: wrap;
	}

	#modal-login #login-captcha-input,
	#modal-signup #signup-captcha-input,
	#modal-forgot-password #forgot-captcha-input {
		flex: 1 1 100%;
		width: 100%;
	}

	#modal-login #login-captcha-img,
	#modal-signup #signup-captcha-img,
	#modal-forgot-password #forgot-captcha-img {
		margin-left: auto;
		margin-right: auto;
	}
}
