﻿* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.col-xs-6 {
	width: 50%;
}

html, body {
	height: 100%;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	overflow-x: hidden;
	overflow-y: auto;
}

	/* ✅ Ocultar scrollbar pero mantener funcionalidad */
	body::-webkit-scrollbar {
		width: 0px;
		background: transparent;
	}

body {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* Header azul original */
.head-log {
	background-color: #1f88c4;	
	border-bottom: 3px solid #1a6fa0;
	position: relative;
	z-index: 10;
}

.title {
	margin: 10px 20px;
}

	.title h1 {
		color: #fff;
		font-size: 2rem;
		font-weight: 600;
		margin: 10px 0;
	}

.sigel {
	text-align: center;
	background-color: #fff;
	color: #1f88c4;
	border-radius: 10px;
	padding: 10px 20px;
	margin: 10px 20px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

	.sigel h1 {
		font-weight: bold;
		margin: 0;
		font-size: 2rem;
	}

/* Fondo con imagen del escudo */
.img-log {
	background-image: url(../images/escudopm2.png);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	min-height: calc(100vh - 90px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	position: relative;
}

/* Card de login MODERNO */
.login-card {
	position: relative;
	z-index: 1;
	background: white;
	border-radius: 15px;
	box-shadow: 0 15px 40px rgba(0,0,0,0.25);
	max-width: 450px;
	width: 100%;
	overflow: hidden;
	animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Header del card AZUL */
.card-header-custom {
	background: linear-gradient(135deg, #1f88c4 0%, #1a6fa0 100%);
	padding: 10px;
	text-align: center;
}

	.card-header-custom .img-logo {
		width: 45%;
		height: auto;
		margin-bottom: 15px;
		filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
	}

	.card-header-custom h2 {
		color: white;
		font-size: 1.3rem;
		font-weight: 600;
		margin: 0;
		text-shadow: 0 2px 4px rgba(0,0,0,0.1);
	}

/* Body del card */
.card-body-custom {
	padding: 35px 30px;
}

/* Form groups */
.form-group-custom {
	margin-bottom: 20px;
}

	.form-group-custom label {
		display: block;
		color: #495057;
		font-weight: 600;
		margin-bottom: 8px;
		font-size: 1.0rem;
	}

.input-wrapper {
	position: relative;
}

.input-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #6c757d;
	font-size: 1.2rem;
}

.form-control-custom {
	width: 100%;
	padding: 14px 15px 14px 45px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	font-size: 1.05rem;
	transition: all 0.3s ease;
	background: #f1f3f5;
}

	.form-control-custom:focus {
		outline: none;
		border-color: #1f88c4;
		background: white;
		box-shadow: 0 0 0 3px rgba(31, 136, 196, 0.15);
	}

/* Botón ingresar - CELESTE */
.btn-login {
	width: 100%;
	padding: 8px;
	background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
	border: none;
	border-radius: 10px;
	color: white;
	font-size: 1.4rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(13, 202, 240, 0.3);
	margin-top: 10px;
	text-decoration: none;
	display: block;
	text-align: center;
}

	.btn-login:hover:not(:disabled) {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(13, 202, 240, 0.4);
		color: white;
		text-decoration: none;
	}

	.btn-login:active {
		transform: translateY(0);
	}

	.btn-login:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}

/* Info box con borde amarillo */
.info-message {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px;
	background: #fff9e6;
	border-left: 4px solid #ffc107;
	border-radius: 8px;
	margin-top: 20px;
}

	.info-message i {
		color: #ffc107;
		margin-top: 2px;
		font-size: 1.5rem;
		flex-shrink: 0;
	}

	.info-message p {
		color: #6c757d;
		font-size: 0.9rem;
		margin: 0;
		line-height: 1.5;
	}

/* Footer del card */
.card-footer-custom {
	background: #f8f9fa;
	padding: 25px 20px;
	text-align: center;
	border-top: 1px solid #e0e0e0;
}

.contact-info {
	color: #6c757d;
	font-size: 0.8rem;
	line-height: 1.8;
}

	.contact-info b {
		color: #495057;
	}

.version-info {
	color: #000000;
	font-size: 0.7rem;
	margin-top: 8px;
	font-weight: bold;
}

/* Alert personalizado */
.alert-custom {
	padding: 12px 15px;
	border-radius: 8px;
	margin-bottom: 20px;
	text-align: center;
	font-size: 0.95rem;
}

.alert-danger {
	color: #a94442;
	background-color: #f2dede;
	border-color: #ebccd1;
}

/* Badge de Autogestión - CELESTE */
.badge-autogestion {
	display: inline-block;
	padding: 2px 8px;
	background: linear-gradient(135deg, #0dcaf0 0%, #0aa2c0 100%);
	color: white;
	font-weight: 600;
	font-size: 0.7rem;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(13, 202, 240, 0.3);
}

	.badge-autogestion:hover {
		background: linear-gradient(135deg, #0aa2c0 0%, #087990 100%);
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(13, 202, 240, 0.4);
		color: white;
		text-decoration: none;
	}

	.badge-autogestion:active {
		transform: translateY(0);
	}

	.badge-autogestion i {
		margin-right: 5px;
		font-size: 0.9em;
	}

/* Link "Volver al Login" */
.volver-login {
	text-align: center;
	margin-top: 15px;
}

	.volver-login a {
		color: #1f88c4;
		font-weight: 500;
		font-size: 1rem;
		text-decoration: none;
	}

		.volver-login a:hover {
			color: #1a6fa0;
			text-decoration: underline;
		}

/* CAPTCHA centrado */
.g-recaptcha,
.cf-turnstile {
	display: flex;
	justify-content: center;
	margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
	/* ✅ En mobile SÍ mostrar scrollbar */
	body::-webkit-scrollbar {
		width: 8px;
	}

	body::-webkit-scrollbar-thumb {
		background-color: rgba(0,0,0,0.3);
		border-radius: 4px;
	}

	body {
		-ms-overflow-style: auto;
		scrollbar-width: thin;
	}

	/* ✅ Header en mobile - uno abajo del otro */
	.head-log .row {
		display: flex;
		flex-direction: column !important;
		gap: 10px;
	}

	.title, .sigel {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 10px !important;
	}

		.title h1 {
			font-size: 1.3rem;
			text-align: center;
		}

	.sigel {
		margin: 0 10px 10px 10px !important;
	}

		.sigel h1 {
			font-size: 1.2rem;
		}

	.login-card {
		max-width: 95%;
		margin: 20px;
	}

	.card-body-custom {
		padding: 25px 20px;
	}

	.card-header-custom {
		padding: 25px;
	}

		.card-header-custom .img-logo {
			width: 50%;
		}

		.card-header-custom h2 {
			font-size: 1.4rem;
		}

	.img-log {
		padding: 20px 10px;
	}
}