:root {
	--primary-color: #2196F3;
	--secondary-color: #1976D2;
	--text-color: #333;
	--error-color: #f44336;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', sans-serif;
	min-height: 100vh;
	position: relative;
}

.login-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	padding: 15px;
	backdrop-filter: blur(0px);
	position: relative;
	z-index: 1;
}

.login-container {
	width: 100%;
	margin: 0 auto;
	max-width: min(90vw, 500px);
	background-color: rgba(255, 255, 255, 0.2);
	padding: 20px;
	border-radius: 16px;
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 2;
}

.login-box {
	background-color: rgba(255, 255, 255, 0.9);
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	position: relative;
	overflow: hidden;
}

.login-header {
	text-align: center;
	margin-bottom: clamp(20px, 5vw, 40px);
}

.logo-container {
	text-align: center;
	margin-bottom: 10px;
}

.logo-container i {
	font-size: clamp(30px, 5vw, 50px);
	color: white;
}

.login-header h1 {
	color: var(--text-color);
	font-size: clamp(20px, 4vw, 32px);
	margin-bottom: 10px;
}

.login-header p {
	color: #666;
	font-size: clamp(14px, 2vw, 16px);
}

.form-group {
	margin-bottom: clamp(15px, 3vw, 25px);
}

.input-group {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group-text {
	background: white;
	border: none;
	color: #666;
	padding: clamp(10px, 2vw, 20px);
}

.form-control {
	border: none;
	padding: clamp(12px, 2.5vw, 18px);
	height: auto;
	font-size: clamp(14px, 2vw, 16px);
	position: relative;
	z-index: 3;
	pointer-events: auto;
	background-color: white;
}

.form-control:focus {
	box-shadow: none;
	background: #f8f9fa;
}

.password-toggle {
	cursor: pointer;
	user-select: none;
}

.login-btn {
	width: 100%;
	padding: clamp(12px, 2.5vw, 18px);
	border: none;
	border-radius: 10px;
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	color: white;
	font-size: clamp(14px, 2vw, 18px);
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	z-index: 3;
	pointer-events: auto;
}

.login-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.custom-alert {
	background: rgba(244, 67, 54, 0.1);
	color: var(--error-color);
	border: 1px solid var(--error-color);
	border-radius: 10px;
	padding: clamp(12px, 2.5vw, 15px);
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Animaciones */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.login-box {
	animation: fadeIn 0.6s ease-out;
}

/* Media queries específicos para ajustes finos */
@media (max-width: 320px) {
	.login-container {
		padding: 5px;
	}
	
	.login-box {
		padding: 15px;
	}
}

@media (min-width: 2000px) {
	.login-container {
		max-width: 600px;
	}
}

/* Estilos para la imagen de fondo */
.background-image {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	background-image: url('../img/muro/muro_2.jpg');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	image-rendering: -webkit-optimize-contrast;
	image-rendering: crisp-edges;
}

/* Eliminamos el overlay adicional para evitar doble capa de transparencia */
.background-image::after {
	display: none;
}

.logo-img {
	width: 150px;
	height: auto;
	margin-bottom: 25px;
}

/* Para pantallas más grandes */
@media (min-width: 768px) {
	.logo-img {
		width: 180px;
	}
}

/* Para móviles */
@media (max-width: 767px) {
	.logo-img {
		width: 130px;
	}
}

.btn-volver {
	position: fixed;
	top: 30px;
	left: 30px;
	padding: 12px 25px;
	background-color: rgba(255, 255, 255, 0.8);
	border: 2px solid white;
	color: #333;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(5px);
	transition: all 0.3s ease;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.btn-volver:hover {
	background-color: rgba(255, 255, 255, 0.95);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-volver i {
	font-size: 16px;
}
