/* Login: panel izquierdo a pantalla completa */

.login-ui *,
.login-ui *::before,
.login-ui *::after {
	box-sizing: border-box;
}

body.login-ui {
	font-family: Outfit, "Segoe UI", sans-serif;
	background-color: #eef1f4;
}

.login-ui {
	min-height: 100%;
	color: #2c2c2c;
}

.login-ui::before {
	content: "";
	position: fixed;
	inset: 24px 24px 24px 508px;
	border-radius: 20px;
	background: rgba(8, 10, 14, 0.22);
	z-index: 1;
	pointer-events: none;
}

.login-ui .login-ui-photo {
	position: fixed;
	top: 24px;
	left: 508px;
	right: 24px;
	bottom: 24px;
	border-radius: 20px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.login-ui #header,
.login-ui #login {
	z-index: 2;
}

.login-ui #mdiLoadingCont {
	z-index: 10000;
}

.login-ui #header {
	background: transparent;
	box-shadow: none;
	height: 0 !important;
	min-width: 0;
	overflow: visible;
	pointer-events: none;
}

.login-ui #header .logo,
.login-ui #header .menu {
	pointer-events: auto;
	float: none;
}

.login-ui #header .logo {
	display: none;
}

.login-ui #header .menu {
	position: fixed;
	top: 24px;
	right: 24px;
	height: 72px;
	margin: 0;
	padding: 0 36px;
	display: flex;
	align-items: center;
	z-index: 3;
}

.login-ui #header .menu .ulmenu li {
	margin-left: 0;
	font-size: 12px;
	letter-spacing: 0.04em;
}

.login-ui #header .menu .ulmenu li,
.login-ui #header a {
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.login-ui #login {
	position: fixed;
	top: 24px;
	left: 24px;
	right: auto;
	bottom: 24px;
	width: 460px;
	height: auto;
	margin: 0;
	transform: none;
	border-radius: 20px;
	border: none;
	padding: 48px 40px 32px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
	overflow: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.login-ui #login.effect7 {
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.login-ui #login.effect7:before,
.login-ui #login.effect7:after {
	display: none;
}

.login-ui #login > img {
	display: none;
}

.login-ui #login > img.login-ui-form-logo {
	display: block;
	position: absolute;
	top: 24px;
	left: 40px;
	float: none;
	height: 90px;
	width: auto;
	max-width: calc(100% - 80px);
	margin: 0;
	image-rendering: auto;
}

.login-ui #login h2 {
	font-size: 32px;
	font-weight: 600;
	letter-spacing: -0.03em;
	height: auto;
	line-height: 1.3;
	margin: 0 0 28px;
	color: #1f1f1f;
}

.login-ui #login h2::after {
	content: "Introduce tus datos para continuar";
	display: block;
	margin-top: 10px;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	color: #6b7280;
	line-height: 1.4;
}

.login-ui .label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	margin: 0 0 6px;
}

.login-ui input[type=text],
.login-ui input[type=password] {
	width: 100%;
	height: 46px;
	line-height: 46px;
	padding: 0 12px;
	border: none;
	border-bottom: 1px solid #e5e7eb;
	border-radius: 0;
	background: transparent;
	font-size: 14px;
	box-shadow: none;
}

.login-ui input[type=text]:hover,
.login-ui input[type=password]:hover {
	border-color: #c4c9d1;
	box-shadow: none;
}

.login-ui input[type=text]:focus,
.login-ui input[type=password]:focus {
	border-color: #c41a2b;
	box-shadow: none;
	outline: none;
}

.login-ui .login-field {
	margin-bottom: 14px;
}

.login-ui .login-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 18px;
	position: relative;
}

.login-ui .login-actions > div {
	display: block !important;
	position: static !important;
	margin: 0 !important;
	float: none !important;
	line-height: 1.4 !important;
	font-size: 12px !important;
}

.login-ui .button {
	width: 100%;
	height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid #111;
	background: #111;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 46px;
	box-shadow: none;
	text-shadow: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.login-ui .button:hover {
	background: #c41a2b;
	border-color: #c41a2b;
}

.login-ui .button:disabled,
.login-ui .button.is-loading {
	opacity: 1;
	cursor: wait;
	pointer-events: none;
}

.login-ui .button .btn-login-spinner {
	display: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: login-btn-spin 0.65s linear infinite;
	flex: 0 0 18px;
}

.login-ui .button.is-loading .btn-login-spinner {
	display: inline-block !important;
	visibility: visible !important;
}

@keyframes login-btn-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.login-ui .login-forgot {
	font-size: 12px !important;
	color: #5a6270 !important;
	text-decoration: none;
	text-align: center;
}

.login-ui .login-forgot:hover {
	color: #1f1f1f !important;
	text-decoration: underline;
}

.login-ui .login-meta {
	flex: 1 0 100%;
	margin-left: 0 !important;
	margin-top: 4px !important;
	text-align: center;
	color: #8a8f98 !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
}

.login-ui .login-meta a {
	color: #8a8f98;
	text-decoration: none;
}

.login-ui .login-meta a:hover {
	text-decoration: underline;
}

.login-ui #nota {
	position: static;
	left: auto;
	top: auto;
	width: auto;
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px solid #f0c2c2;
	border-radius: 6px;
	background: #fff5f5;
	color: #a32020;
	box-shadow: none;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

/* ---- Modales y loading del login (recuperar contraseña) ---- */

.login-ui .layout {
	position: fixed !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	background: rgba(12, 14, 18, 0.48) !important;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 10000 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.login-ui .cgMsgBox {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	margin: 0 !important;
	width: min(380px, calc(100vw - 40px)) !important;
	height: auto !important;
	min-height: 0;
	padding: 0 0 20px;
	border: 1px solid rgba(0, 0, 0, 0.08) !important;
	border-radius: 18px !important;
	background: #fff !important;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28) !important;
	font-family: Outfit, "Segoe UI", sans-serif;
	font-size: 14px;
	overflow: hidden;
	animation: login-modal-in 0.22s ease-out;
}

@keyframes login-modal-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.login-ui .cgMsgBox .wnd_top {
	position: relative;
	height: 52px !important;
	background: transparent !important;
	border-bottom: 1px solid #eceff3 !important;
	cursor: default !important;
}

.login-ui .cgMsgBox .wnd_ico {
	display: none !important;
}

.login-ui .cgMsgBox .wnd_tit {
	position: absolute !important;
	left: 22px !important;
	top: 0 !important;
	height: 52px !important;
	line-height: 52px !important;
	margin: 0 !important;
	color: #1f1f1f !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	text-shadow: none !important;
	float: none !important;
}

.login-ui .cgMsgBox .wnd_clo {
	position: absolute !important;
	right: 12px !important;
	top: 12px !important;
	width: 28px !important;
	height: 28px !important;
	margin: 0 !important;
	border-radius: 50%;
	background-color: transparent !important;
	background-image: none !important;
	opacity: 0.55;
	cursor: pointer;
}

.login-ui .cgMsgBox .wnd_clo::before,
.login-ui .cgMsgBox .wnd_clo::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 14px;
	height: 1.5px;
	background: #1f1f1f;
	border-radius: 1px;
}

.login-ui .cgMsgBox .wnd_clo::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.login-ui .cgMsgBox .wnd_clo::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.login-ui .cgMsgBox .wnd_clo:hover {
	opacity: 1;
	background: #f3f4f6 !important;
}

.login-ui .cgMsgBoxText {
	width: auto !important;
	height: auto !important;
	min-height: 72px;
	padding: 22px 24px 12px !important;
	overflow: visible !important;
	color: #3a3f47;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
}

.login-ui .cgMsgBoxInfo,
.login-ui .cgMsgBoxAlert,
.login-ui .cgMsgBoxError,
.login-ui .cgMsgBoxYesNo {
	float: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	height: 40px !important;
	margin: 0 auto 14px !important;
	padding: 0 !important;
	border-radius: 50%;
	background-image: none !important;
	background-repeat: no-repeat;
	background-position: center;
}

.login-ui .cgMsgBoxInfo {
	background: #eef7f0;
	box-shadow: inset 0 0 0 2px #2f9e5b;
}

.login-ui .cgMsgBoxInfo::after {
	content: "";
	display: block;
	width: 7px;
	height: 12px;
	margin: -2px 0 0 0;
	border-right: 2.5px solid #2f9e5b;
	border-bottom: 2.5px solid #2f9e5b;
	transform: rotate(45deg);
	box-sizing: border-box;
}

.login-ui .cgMsgBoxAlert {
	background: #fff7e8;
	box-shadow: inset 0 0 0 2px #e2a100;
}

.login-ui .cgMsgBoxAlert::after {
	content: "!";
	display: block;
	line-height: 1;
	font-size: 22px;
	font-weight: 700;
	color: #e2a100;
}

.login-ui .cgMsgBoxError {
	background: #fff5f5;
	box-shadow: inset 0 0 0 2px #c41a2b;
}

.login-ui .cgMsgBoxError::after {
	content: "!";
	display: block;
	line-height: 1;
	font-size: 22px;
	font-weight: 700;
	color: #c41a2b;
}

.login-ui .cgMsgBoxInfoBtn,
.login-ui .cgMsgBoxAlertBtn,
.login-ui .cgMsgBoxErrorBtn,
.login-ui .cgMsgBoxBtnYes,
.login-ui .cgMsgBoxBtnNo,
.login-ui .cgMsgBox .ui-button {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	display: block !important;
	width: calc(100% - 48px) !important;
	max-width: none !important;
	height: 44px !important;
	margin: 8px 24px 0 !important;
	padding: 0 18px !important;
	border: 1px solid #111 !important;
	border-radius: 999px !important;
	background: #111 !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font-family: Outfit, "Segoe UI", sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.02em;
	line-height: 42px !important;
	text-align: center !important;
	text-shadow: none !important;
	cursor: pointer;
}

.login-ui .cgMsgBoxInfoBtn:hover,
.login-ui .cgMsgBoxAlertBtn:hover,
.login-ui .cgMsgBoxErrorBtn:hover,
.login-ui .cgMsgBoxBtnYes:hover,
.login-ui .cgMsgBoxBtnNo:hover,
.login-ui .cgMsgBox .ui-button:hover,
.login-ui .cgMsgBoxInfoBtn:focus,
.login-ui .cgMsgBoxAlertBtn:focus,
.login-ui .cgMsgBoxErrorBtn:focus,
.login-ui .cgMsgBox .ui-button:focus {
	background: #c41a2b !important;
	border-color: #c41a2b !important;
	color: #fff !important;
	outline: none;
}

.login-ui .cgMsgBox .ui-button .ui-button-text {
	padding: 0 !important;
	line-height: inherit !important;
}

.login-ui .cgMsgBoxBtnNo {
	background: #fff !important;
	border-color: #d0d5dd !important;
	color: #1f1f1f !important;
}

.login-ui .cgMsgBoxBtnNo:hover,
.login-ui .cgMsgBoxBtnNo:focus {
	background: #f5f6f8 !important;
	border-color: #111 !important;
	color: #1f1f1f !important;
}

/* Loading "Enviando..." */
.login-ui #mdiLoadingCont {
	position: fixed !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	background: rgba(12, 14, 18, 0.42) !important;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.login-ui #mdiLoadingCont[style*="block"],
.login-ui #mdiLoadingCont.is-visible {
	display: flex !important;
}

.login-ui #mdiLoading {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	margin: 0 !important;
	width: auto !important;
	min-width: 180px;
	height: auto !important;
	padding: 22px 28px !important;
	border: 1px solid rgba(255, 255, 255, 0.12) !important;
	border-radius: 16px !important;
	background: #111 !important;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35) !important;
	color: #fff !important;
	font-family: Outfit, "Segoe UI", sans-serif;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.login-ui #mdiLoading .wnd_loading {
	display: none !important;
}

.login-ui #mdiLoading .login-loading-spinner {
	width: 22px;
	height: 22px;
	border: 2.5px solid rgba(255, 255, 255, 0.28);
	border-top-color: #fff;
	border-radius: 50%;
	animation: login-btn-spin 0.65s linear infinite;
}

.login-ui #mdiLoading .login-loading-text {
	display: block;
}

@media (max-width: 560px) {
	.login-ui::before {
		inset: 12px;
		border-radius: 12px;
	}

	.login-ui .login-ui-photo {
		top: 12px;
		left: 12px;
		right: 12px;
		bottom: 12px;
		border-radius: 12px;
	}

	.login-ui #header .menu {
		top: 12px;
		right: 12px;
		height: 56px;
		padding: 0 20px;
		margin: 0;
	}

	.login-ui #login {
		position: absolute;
		width: calc(100% - 24px);
		left: 12px;
		right: 12px;
		bottom: auto;
		margin-left: 0;
		transform: none;
		top: 84px;
		height: auto;
		border-radius: 12px;
		padding: 104px 20px 18px;
	}

	.login-ui #login > img.login-ui-form-logo {
		top: 16px;
		left: 20px;
		height: 72px;
		max-width: calc(100% - 40px);
	}

	.login-ui #login h2 {
		font-size: 24px;
	}

	.login-ui .login-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.login-ui .login-meta {
		margin-left: 0 !important;
		text-align: left;
	}
}
