:root {
	--bg: #f5f7fb;
	--card: #ffffff;
	--primary: #6ea8fe;
	--primary-hover: #5a96f2;
	--text: #1f2937;
	--muted: #6b7280;
	--border: #e5e7eb;
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Segoe UI", Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
}

/* Caja login */
#boxlogin {
	background-color: var(--card);
	width: 360px;
	padding: 0 30px 30px 30px;
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	height: auto;
}

/* Titulo */
#titleboxlogin {
	background: transparent;
	width: 100%;
	height: auto;
	color: var(--text);
	font-size: 28px;
	font-weight: 600;
	padding: 28px 0 24px 0;
	border-bottom: 1px solid #f0f0f0;
	margin-bottom: 24px;
}

/* Labels o textos */
#boxlogin label,
#boxlogin td,
#boxlogin span,
#boxlogin div {
	color: var(--text);
	font-size: 15px;
	font-weight: 500;
}

/* Inputs */
#boxlogin input[type="text"],
#boxlogin input[type="password"],
#boxlogin input:not([type]) {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	margin-top: 6px;
	margin-bottom: 16px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fafafa;
	font-size: 15px;
	outline: none;
	transition: all 0.2s ease;
}

#boxlogin input[type="text"]:focus,
#boxlogin input[type="password"]:focus,
#boxlogin input:not([type]):focus {
	border-color: var(--primary);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.18);
}

/* Botón */
#boxlogin input[type="submit"],
#boxlogin input[type="button"],
#boxlogin button {
	width: 100%;
	height: 46px;
	border: none;
	border-radius: 10px;
	background: var(--primary);
	color: white;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
	margin-top: 8px;
}

#boxlogin input[type="submit"]:hover,
#boxlogin input[type="button"]:hover,
#boxlogin button:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

/* Menú sistemas */
#menusistemas {
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translateX(-50%);
	width: 820px;
}

.sistemas {
	text-align: center;
	float: left;
	width: 255px;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	margin: 8px;
	overflow: hidden;
}

.titlesistemas {
	background: #eef4ff;
	width: 100%;
	height: auto;
	padding: 12px;
	color: #355c9a;
	font-weight: 600;
	font-size: 15px;
	border-bottom: 1px solid var(--border);
}

/* Captcha */
.captcha-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	margin: 8px 0 16px 0;
}

/* En pantallas chicas lo achica un poco */
@media (max-width: 380px) {
	.captcha-wrapper {
		transform: scale(0.92);
		transform-origin: center;
	}
}
