/* ==========================================================================
   EVOX — Cuenta / Login (widget del ícono de usuario)
   Sirve igual dentro de un dropdown/popup (desktop) o de una página (mobile).
   Paleta EVOX: navy var(--evox-azul) primario, verde var(--evox-verde) acento.
   ========================================================================== */

.evox-auth {
	font-family: 'Manrope', sans-serif;
	width: 320px;
	max-width: 100%;
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	box-sizing: border-box;
	text-align: center;
}

/* En una página (mobile) el widget se centra y respira */
.evox-auth-page .evox-auth {
	width: 380px;
	margin: 24px auto;
	box-shadow: 0 2px 16px rgba(0, 43, 112, 0.08);
}

/* -------- Pasos: solo el activo visible -------- */
.evox-auth__step {
	display: none;
}
.evox-auth__step.is-active {
	display: block;
}

.evox-auth__title {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 17px;
	color: var(--evox-tinta);
	margin: 0 0 18px;
}

/* -------- Botones de elección (paso inicial) -------- */
.evox-auth__btn {
	display: block;
	width: 100%;
	background: var(--evox-azul);
	color: #fff;
	border: none;
	padding: 13px 16px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	margin-bottom: 12px;
	transition: background 0.2s ease;
}
.evox-auth__btn:hover {
	background: var(--evox-azul-hover);
}
.evox-auth__btn--ghost {
	background: #fff;
	color: var(--evox-azul);
	border: 1px solid var(--evox-borde-fuerte);
}
.evox-auth__btn--ghost:hover {
	background: var(--evox-fondo);
}

/* -------- Campos -------- */
.evox-auth__label {
	display: block;
	text-align: left;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--evox-cuerpo);
	margin: 0 0 6px;
}
.evox-auth__input {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--evox-borde-fuerte);
	border-radius: 8px;
	background: var(--evox-fondo);
	font-family: inherit;
	font-size: 14px;
	color: var(--evox-tinta);
	box-sizing: border-box;
	margin-bottom: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.evox-auth__input:focus {
	outline: none;
	border-color: var(--evox-verde);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(13, 188, 84, 0.15);
}
.evox-auth__input--code {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 8px;
}

/* -------- Botón principal de cada paso -------- */
.evox-auth__submit {
	width: 100%;
	background: var(--evox-azul);
	color: #fff;
	border: none;
	padding: 13px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background 0.2s ease;
}
.evox-auth__submit:hover {
	background: var(--evox-azul-hover);
}
.evox-auth__submit.is-busy,
.evox-auth__submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* -------- Enlaces / botones secundarios -------- */
.evox-auth__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: none;
	color: var(--evox-cuerpo);
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	margin: 0 0 14px;
	float: left;
}
.evox-auth__back:hover {
	color: var(--evox-azul);
}
.evox-auth__forgot {
	display: block;
	margin: 0 0 14px auto;
	background: none;
	border: none;
	color: var(--evox-verde);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}
.evox-auth__resend {
	display: block;
	width: 100%;
	margin-top: 10px;
	background: none;
	border: none;
	color: var(--evox-cuerpo);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}
.evox-auth__resend:hover {
	color: var(--evox-azul);
}
/* Separador "o" + acceso alternativo por código (bajo el login clásico) */
.evox-auth__alt {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--evox-borde);
	position: relative;
}
.evox-auth__alt-label {
	position: absolute;
	top: -9px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	padding: 0 10px;
	font-size: 12px;
	color: var(--evox-suave);
}
.evox-auth__alt .evox-auth__btn {
	margin-bottom: 0;
}

.evox-auth__switch {
	font-size: 12.5px;
	color: var(--evox-cuerpo);
	margin: 16px 0 0;
}
.evox-auth__switch button {
	background: none;
	border: none;
	color: var(--evox-verde);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
}

/* -------- Mensajes / hints -------- */
.evox-auth__hint {
	font-size: 13px;
	color: var(--evox-cuerpo);
	line-height: 1.5;
	margin: 0 0 16px;
}
.evox-auth__msg {
	font-size: 12.5px;
	line-height: 1.45;
	margin: 0 0 12px;
	min-height: 0;
}
.evox-auth__msg.is-error {
	color: var(--evox-error);
}
.evox-auth__msg.is-ok {
	color: var(--evox-verde-texto);
}
.evox-auth__legal {
	font-size: 11px;
	color: var(--evox-suave);
	line-height: 1.5;
	margin: 16px 0 0;
}
.evox-auth__legal a {
	color: var(--evox-cuerpo);
	text-decoration: underline;
}

/* -------- Estado logueado -------- */
.evox-auth--account {
	text-align: left;
}
.evox-auth__hello {
	font-size: 13px;
	color: var(--evox-cuerpo);
	margin: 0;
}
.evox-auth__user {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--evox-tinta);
	margin: 0 0 16px;
	word-break: break-word;
}
.evox-auth__link {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--evox-tinta);
	text-decoration: none;
	border-top: 1px solid var(--evox-fondo-2);
	transition: color 0.2s ease;
}
.evox-auth__link:hover {
	color: var(--evox-verde);
}
.evox-auth__logout {
	display: block;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--evox-borde);
	font-size: 13px;
	font-weight: 600;
	color: var(--evox-error);
	text-decoration: none;
}
.evox-auth__logout:hover {
	text-decoration: underline;
}

/* -------- Clearfix del botón Volver (flotado) -------- */
.evox-auth__step::after {
	content: '';
	display: block;
	clear: both;
}

/* ==========================================================================
   RESPONSIVE (móvil)
   El widget deja de tener ancho fijo y se adapta al contenedor (popup a
   pantalla casi completa, o la página de acceso).
   ========================================================================== */
@media (max-width: 600px) {
	.evox-auth {
		width: 100%;
		padding: 20px 18px;
	}
	.evox-auth-page .evox-auth {
		width: 100%;
		margin: 16px auto;
	}
	.evox-auth__title {
		font-size: 16px;
	}
	.evox-auth__btn,
	.evox-auth__submit {
		font-size: 12.5px;
		padding: 14px 12px;
	}
	/* Campos a 16px: evita el zoom automático de iOS al enfocar un input */
	.evox-auth__input {
		font-size: 16px;
		height: 48px;
	}
	.evox-auth__input--code {
		font-size: 20px;
		letter-spacing: 6px;
	}
}

/* El popup/offcanvas que contiene el widget nunca debe desbordar la pantalla */
@media (max-width: 600px) {
	.brx-popup:has(.evox-auth),
	.brxe-offcanvas:has(.evox-auth) {
		max-width: 100vw;
	}
}
