/**
 * Widget de login flotante (Fase 2, punto 5). Se ubica abajo a la
 * IZQUIERDA a propósito, para no chocar con el botón del futuro
 * asistente "Webzi IA" (.webzi-edu-assistant-fab), que va abajo a la
 * derecha - ver assets/css/frontend.css.
 */

.webzi-edu-login-fab {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 9998;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --webzi-color-primario, #1a5276 );
	color: #fff;
	box-shadow: 0 6px 20px rgba( 0, 0, 0, 0.22 );
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	text-decoration: none;
}
.webzi-edu-login-fab:hover,
.webzi-edu-login-fab:focus {
	transform: translateY( -2px );
	box-shadow: 0 10px 24px rgba( 0, 0, 0, 0.28 );
	color: #fff;
}
.webzi-edu-login-fab .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.webzi-edu-login-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.webzi-edu-login-modal[hidden] { display: none; }

.webzi-edu-login-modal__fondo {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}

.webzi-edu-login-modal__caja {
	position: relative;
	background: #fff;
	border-radius: 10px;
	padding: 28px 26px 22px;
	width: 100%;
	max-width: 380px;
	box-shadow: 0 20px 50px rgba( 0, 0, 0, 0.3 );
}
.webzi-edu-login-modal__caja h3 {
	margin: 0 0 8px;
	color: var( --webzi-color-primario, #1a5276 );
}
.webzi-edu-login-modal__ayuda {
	margin: 0 0 18px;
	font-size: 0.85em;
	color: #555;
}
.webzi-edu-login-modal__bienvenida {
	background: #eaf2f7;
	border: 1px solid #cfe0ea;
	color: #133c53;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 0.85em;
	margin: 0 0 16px;
	text-align: center;
}
.webzi-edu-login-modal__bienvenida[hidden] { display: none; }
.webzi-edu-login-modal__caja label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 0.9em;
}
.webzi-edu-login-modal__caja input[type="text"],
.webzi-edu-login-modal__caja input[type="password"] {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 5px;
	box-sizing: border-box;
}
.webzi-edu-login-modal__cerrar {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #777;
}
.webzi-edu-login-modal__cerrar:hover { color: #111; }

.webzi-edu-login-modal__error {
	background: #fdecea;
	color: #b32d2e;
	padding: 8px 10px;
	border-radius: 5px;
	font-size: 0.85em;
}

.webzi-edu-login-modal__acciones { margin-top: 6px; }
.webzi-edu-login-submit {
	width: 100%;
	padding: 10px;
	border: none;
	border-radius: 6px;
	background: var( --webzi-color-primario, #1a5276 );
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.webzi-edu-login-submit:disabled { opacity: 0.6; cursor: default; }

.webzi-edu-login-modal__recuperar {
	text-align: center;
	margin: 12px 0 0;
	font-size: 0.85em;
}

.webzi-edu-login-modal__cambiar {
	text-align: center;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid #eee;
	font-size: 0.85em;
	color: #555;
}
.webzi-edu-login-modal__link {
	background: none;
	border: none;
	padding: 0;
	margin-left: 4px;
	color: var( --webzi-color-primario, #1a5276 );
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
	font-size: 1em;
}

body.webzi-edu-login-modal-abierto { overflow: hidden; }

@media ( max-width: 480px ) {
	.webzi-edu-login-fab { left: 14px; bottom: 14px; width: 48px; height: 48px; }
}
