@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@700&family=Inter:wght@400;500;600&display=swap');

.eg-form-wrap {
	max-width: 420px;
	background: #0a1830;
	border: 1px solid rgba(255, 140, 0, 0.25);
	border-radius: 16px;
	padding: 28px;
	font-family: 'Inter', sans-serif;
	color: #d0d0d0;
}

.eg-form-wrap label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 14px;
	font-weight: 600;
	color: #d0d0d0;
}

.eg-form-wrap input {
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	background: #050d1c;
	color: #fff;
}

.eg-form-wrap input:focus {
	outline: none;
	border-color: #ff8c00;
}

.eg-form-wrap button[type="submit"] {
	padding: 12px 20px;
	border: none;
	border-radius: 6px;
	background-color: #ff8c00;
	color: #000;
	cursor: pointer;
	font-weight: 700;
	width: 100%;
	font-family: 'Rajdhani', sans-serif;
	font-size: 16px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.eg-form-wrap button[type="submit"]:hover {
	background-color: #ffa733;
}

.eg-aviso {
	padding: 10px 14px;
	margin-bottom: 16px;
	border-radius: 6px;
	font-weight: 600;
}

.eg-aviso-error {
	background-color: rgba(226, 75, 74, 0.1);
	color: #e24b4a;
	border-left: 4px solid #e24b4a;
}

.eg-aviso-exito {
	background-color: #edf7ed;
	color: #2e7d32;
	border-left: 4px solid #2e7d32;
}

.eg-label-fila {
	display: flex;
	align-items: center;
	gap: 6px;
}

.eg-label-tooltip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #888;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
	flex-shrink: 0;
}

.eg-tooltip-texto {
	display: none;
	position: absolute;
	bottom: 130%;
	left: 0;
	width: 220px;
	background: #1a1a1a;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	padding: 8px 10px;
	border-radius: 6px;
	z-index: 10;
}

.eg-label-tooltip:hover .eg-tooltip-texto,
.eg-label-tooltip:focus .eg-tooltip-texto,
.eg-label-tooltip.eg-tooltip-abierto .eg-tooltip-texto {
	display: block;
}

.eg-sugerencias-dominio {
	display: none;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.eg-chip-dominio {
	background: #f0f0f1;
	border: 1px solid #ccc;
	border-radius: 14px;
	padding: 4px 10px;
	font-size: 12px;
	cursor: pointer;
	color: #333;
}

.eg-chip-dominio:hover {
	background: #ff8c00;
	border-color: #ff8c00;
	color: #fff;
}

.eg-campo-check-wrap {
	position: relative;
	display: flex;
}

.eg-campo-check-wrap input {
	flex: 1;
	padding-right: 34px !important;
}

.eg-icono-estado {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	font-weight: 700;
	pointer-events: none;
}

.eg-icono-estado.eg-estado-ok {
	color: #2e7d32;
}

.eg-icono-estado.eg-estado-error {
	color: #c62828;
}

.eg-campo-estado-msg {
	font-size: 12px;
	font-weight: 600;
	min-height: 0; /* Solo ocupa espacio cuando hay texto real (mensajes de error explicativos) */
	display: block;
}

.eg-campo-estado-msg.eg-estado-error {
	color: #c62828;
}

.eg-password-wrap {
	position: relative;
	display: flex;
}

.eg-password-wrap input {
	flex: 1;
	padding-right: 40px !important;
}

.eg-btn-ver-password {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	font-size: 16px;
	opacity: 0.5;
	padding: 4px;
}

.eg-form-wrap input.eg-campo-error {
	border-color: #c62828;
	background-color: #fdecea;
}

.eg-campo-error-msg {
	font-size: 12px;
	font-weight: 400;
	color: #c62828;
	min-height: 14px;
	display: block;
}

/* Botón "Mi Perfil" para el header */
.eg-link-limpio,
.eg-link-limpio:hover,
.eg-link-limpio:visited,
.eg-link-limpio * {
	text-decoration: none !important;
	color: inherit;
}

.eg-boton-perfil-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Botones "Iniciar sesión" / "Únete ahora" — sin sesión */
.eg-btn-login,
.eg-btn-registro {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none !important;
}

.eg-btn-login {
	color: #ff8c00;
	border: 1px solid rgba(255, 140, 0, 0.5);
	background: transparent;
}

.eg-btn-login:hover { background: rgba(255, 140, 0, 0.08); }

.eg-btn-registro {
	background: #ff8c00;
	color: #000;
}

.eg-btn-registro:hover { background: #ffa733; }

.eg-btn-login::before { content: "→"; }
.eg-btn-registro::before { content: "＋"; }

/* Botón con avatar + desplegable — con sesión */
.eg-boton-perfil-wrap {
	position: relative;
}

.eg-btn-avatar-sesion {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ff8c00;
	border: none;
	border-radius: 24px;
	padding: 5px 14px 5px 5px;
	cursor: pointer;
}

.eg-btn-avatar-sesion:hover { background: #ffa733; }

.eg-avatar-mini-header {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #000;
}

.eg-punto-notificacion {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 10px;
	height: 10px;
	background: #e24b4a;
	border: 2px solid #050d1c;
	border-radius: 50%;
}

.eg-avatar-mini-inicial {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #000;
	color: #ff8c00;
	font-family: 'Rajdhani', sans-serif;
	font-weight: 700;
	font-size: 12px;
}

.eg-nombre-header {
	font-weight: 700;
	font-size: 13px;
	color: #000;
}

.eg-flecha-desplegable {
	font-size: 10px;
	color: #000;
	opacity: 0.8;
}

.eg-avatar-mini-invitado {
	background: rgba(0, 0, 0, 0.15);
	border: 2px solid #e24b4a !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
}

/* Borde de estado: verde con sesión iniciada, rojo sin sesión — reemplaza
   al viejo "punto rojo" de correo sin verificar, que se sacó de este
   ícono compacto (ese aviso sigue viviendo en la propia página de perfil). */
.eg-sesion-activa .eg-avatar-mini-header {
	border: 2px solid #4ade80;
}

@media (max-width: 600px) {
	/* En celular, el botón de sesión queda reducido a solo el círculo
	   (foto/inicial, o el ícono genérico si no hay sesión) — sin el
	   Gamertag ni la flechita, para no ocupar espacio en el header. */
	.eg-btn-avatar-sesion {
		padding: 0;
		background: transparent !important;
		border: none;
	}

	.eg-nombre-header,
	.eg-flecha-desplegable,
	.eg-punto-alerta {
		display: none;
	}

	.eg-avatar-mini-header {
		width: 34px;
		height: 34px;
	}

	.eg-menu-desplegable-sesion {
		right: 0;
	}
}

.eg-punto-alerta {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #e53935;
}

.eg-menu-desplegable-sesion {
	position: absolute;
	top: 110%;
	right: 0;
	background: #0a1830;
	border: 1px solid rgba(255, 140, 0, 0.3);
	border-radius: 10px;
	overflow: hidden;
	min-width: 140px;
	z-index: 999;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.eg-menu-desplegable-sesion a {
	display: block;
	padding: 10px 16px;
	color: #d0d0d0;
	text-decoration: none !important;
	font-size: 13px;
}

.eg-menu-desplegable-sesion a:hover {
	background: rgba(255, 140, 0, 0.1);
	color: #ff8c00;
}

/* Perfil */
.eg-perfil-wrap {
	max-width: 600px;
}

.eg-aviso-verificacion {
	background-color: #fff8e1;
	border-left: 4px solid #f9a825;
	padding: 12px 16px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.eg-btn-reenviar {
	padding: 6px 12px;
	border: 1px solid #f9a825;
	background: transparent;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.eg-campo-perfil .eg-btn-editar-campo {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	padding: 0 4px;
}

.eg-campo-perfil .eg-dias-restantes {
	font-size: 12px;
	color: #888;
	margin-left: 4px;
}

.eg-form-edicion-campo {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: 6px;
}

.eg-form-edicion-campo .eg-input-nuevo-valor {
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.eg-campo-perfil-msg {
	font-size: 12px;
	font-weight: 600;
}

.eg-aviso-dt {
	margin-top: 14px;
	padding: 10px 14px;
	background-color: #f0f0f1;
	border-radius: 4px;
}
