/* Reset y estilos base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	width: 100%;
	overflow-x: hidden;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	background: #1B1D35;
	color: #fff;
	line-height: 1.6;
	overflow-x: hidden;
	width: 100%;
	margin: 0;
	padding: 0;
}

/* Container fluid */
.container-fluid {
	padding: 0;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Row y Columnas */
.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}

.justify-content-end {
	justify-content: flex-end;
}

.col-lg-4, .col-md-6, .col-sm-12, .col-xs-12 {
	position: relative;
	width: 100%;
	padding: 0 15px;
	box-sizing: border-box;
}

.align-self-center {
	align-self: center;
}

/* Banner principal - static-slider-head */
.static-slider-head {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: auto;
	background-size: cover;
	background-position: center center;
	background-image: url('../imagenes/banner.png');
	background-repeat: no-repeat;
	background-attachment: fixed;
	padding: 3rem 0 2rem 0;
	box-sizing: border-box;
	position: relative;
}

/* Formulario de login */
.login-form-card {
	background-color: #006633; /* Verde oscuro */
	border: thick solid #FFFFFF;
	opacity: 0.75;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	box-sizing: border-box;
	transition: all 0.3s ease;
}

/* Logo */
.login-logo-container {
	text-align: center;
	margin-bottom: 1.5rem;
}

.login-logo-img {
	max-width: 100%;
	height: auto;
	max-height: 180px;
	display: block;
	margin: 0 auto;
	object-fit: contain;
}

.login-logo-placeholder {
	color: white;
	font-size: 2rem;
	font-weight: bold;
	padding: 2rem;
}

/* Formulario */
.login-form {
	width: 100%;
}

/* Labels de los inputs */
.input-label {
	display: block;
	color: white;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.form-group-login {
	margin-bottom: 1rem;
}

/* Input group */
.input-group-login {
	display: flex;
	align-items: stretch;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
	background: white;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease;
	position: relative;
}

/* Input group específico para contraseña con botón toggle */
.input-group-password {
	position: relative;
	display: flex;
	align-items: stretch;
}

.input-group-login:focus-within {
	box-shadow: 0 4px 8px rgba(0, 102, 51, 0.2);
}

/* Input addon (icono) */
.input-addon {
	background: #006633; /* Verde oscuro */
	color: white;
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	font-size: 18px;
	flex-shrink: 0;
}

/* Input de formulario */
.form-input-login {
	flex: 1;
	padding: 15px;
	font-family: 'Raleway', sans-serif;
	font-size: 18px;
	line-height: 1.5;
	border: none;
	background: white;
	color: #333;
	outline: none;
	transition: all 0.3s ease;
	min-height: 48px;
	width: 100%;
	box-sizing: border-box;
}

/* Ajustar padding cuando hay botón de toggle de contraseña */
.input-group-password #password-input {
	padding-right: 55px;
	flex: 1;
	min-width: 0; /* Permitir que se encoja */
}

.form-input-login:focus {
	box-shadow: inset 0 0 0 2px #006633;
}

.form-input-login::placeholder {
	color: #999;
	font-size: 17px;
}

/* Botón para mostrar/ocultar contraseña */
.password-toggle-btn {
	background: #006633;
	border: none;
	color: white;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	min-width: 50px;
	max-width: 50px;
	height: 48px;
	font-size: 18px;
	transition: all 0.3s ease;
	outline: none;
	flex-shrink: 0;
	flex-grow: 0;
	position: relative;
	border-radius: 0 4px 4px 0;
	margin: 0;
	box-sizing: border-box;
	z-index: 1;
}

/* Asegurar visibilidad */
.input-group-password .password-toggle-btn {
	display: flex;
	visibility: visible;
	opacity: 1;
}

.password-toggle-btn:hover {
	background: #004d26; /* Verde más oscuro al hover */
	color: white;
}

.password-toggle-btn:focus {
	background: #004d26;
	color: white;
	outline: 2px solid #006633;
	outline-offset: -2px;
}

.password-toggle-btn:active {
	background: #003d1f;
}

.password-toggle-btn i {
	pointer-events: none;
	display: inline-block;
	font-size: 18px;
	color: white;
	line-height: 1;
}

/* Botón de envío */
.btn-login-submit {
	width: 100%;
	background: #006633; /* Verde oscuro */
	color: white;
	border: none;
	padding: 15px;
	border-radius: 4px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 1rem;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
}

.btn-login-submit:hover {
	background-color: #004d26; /* Verde más oscuro */
}

.btn-login-submit:active {
	transform: scale(0.98);
}

/* Mensajes de error */
.error-message-login {
	background-color: rgba(255, 0, 0, 0.1);
	border: 2px solid #ff4d4d;
	border-radius: 4px;
	padding: 1rem;
	margin-top: 1rem;
	color: #ffcccc;
}

.error-message-login ul {
	list-style: none;
	padding: 0;
}

.error-message-login ul li {
	margin-bottom: 0.5rem;
	padding-left: 1.5rem;
	position: relative;
}

.error-message-login ul li::before {
	content: '⚠';
	position: absolute;
	left: 0;
}

/* Enlace de registro */
.login-register-link {
	text-align: center;
	margin-top: 0.5rem;
}

.register-link-text {
	color: #006633; /* Verde oscuro */
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	transition: color 0.3s ease;
	background: white;
	padding: 8px 16px;
	border-radius: 4px;
	display: inline-block;
}

.register-link-text:hover {
	color: #004d26; /* Verde más oscuro */
	text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN - Breakpoints Profesionales
   ============================================ */

/* Desktop Grande (≥ 1024px) */
@media (min-width: 1024px) {
	.static-slider-head {
		padding: 3rem 0 2rem 0;
		min-height: 100vh;
		justify-content: center;
	}
	
	.container-fluid {
		padding: 0 2rem;
	}
	
	.col-lg-4 {
		flex: 0 0 33.333333%;
		max-width: 33.333333%;
		padding: 0 15px;
	}
	
	.login-form-card {
		padding: 1.5rem;
		opacity: 0.75;
	}
	
	.login-logo-img {
		max-height: 180px;
	}
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
	.static-slider-head {
		background-image: url('../imagenes/bannerremoviltab.png');
		padding: 2rem 1rem !important;
		min-height: auto !important;
		justify-content: flex-start;
		padding-top: 3rem !important;
		background-attachment: scroll;
	}
	
	.container-fluid {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
		width: 100%;
	}
	
	.row {
		justify-content: center !important;
	}
	
	.col-lg-4, .col-md-6, .col-sm-12, .col-xs-12 {
		flex: 0 0 100%;
		max-width: 100%;
		padding: 0 10px;
	}
	
	.login-form-card {
		padding: 1.25rem;
		width: 100%;
		max-width: 100%;
		opacity: 0.95;
	}
	
	.login-logo-img {
		max-height: 180px;
	}
}

/* Móvil Grande / Tablet Pequeña (576px - 767px) */
@media (max-width: 767px) {
	.static-slider-head {
		padding: 1rem 0.5rem !important;
		min-height: auto !important;
		background-image: url('../imagenes/bannerremoviltab.png');
		justify-content: flex-start;
		padding-top: 2rem !important;
		background-attachment: scroll;
	}
	
	.container-fluid {
		padding-left: 0.5rem !important;
		padding-right: 0.5rem !important;
		width: 100%;
	}
	
	.row {
		margin: 0;
		width: 100%;
		justify-content: center !important;
	}
	
	.col-lg-4, .col-md-6, .col-sm-12, .col-xs-12 {
		padding: 0 10px;
		width: 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.login-form-card {
		padding: 1rem;
		margin: 0 auto;
		width: 100%;
		max-width: 100%;
		border-width: 3px;
		opacity: 0.95;
	}
	
	.login-logo-container {
		margin-bottom: 1rem;
	}
	
	.login-logo-img {
		max-height: 160px;
		filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
		padding: 10px;
		background-color: rgba(255, 255, 255, 0.98);
		border-radius: 12px;
		border: 3px solid rgba(0, 102, 51, 0.4);
		box-shadow: 0 4px 8px rgba(0, 102, 51, 0.2);
		width: 100%;
		max-width: 100%;
		height: auto;
		object-fit: contain;
	}
	
	.form-input-login,
	.input-addon {
		padding: 14px 12px;
		font-size: 16px;
		min-height: 48px;
	}
	
	#password-input {
		padding-right: 45px;
	}
	
	.input-addon {
		min-width: 48px;
		font-size: 16px;
	}
	
	.input-group-password #password-input {
		padding-right: 50px;
	}
	
	.password-toggle-btn {
		width: 44px;
		min-width: 44px;
		max-width: 44px;
		height: 44px;
		font-size: 16px;
	}
	
	.password-toggle-btn i {
		font-size: 16px;
	}
	
	.btn-login-submit {
		padding: 14px 16px;
		min-height: 48px;
		font-size: 16px;
	}
	
	.input-label {
		font-size: 14px;
		margin-bottom: 6px;
	}
}

/* Móvil Pequeño (≤ 575px) */
@media (max-width: 575px) {
	.static-slider-head {
		padding: 0.75rem 0.25rem !important;
		background-image: url('../imagenes/bannerremoviltab.png');
		min-height: auto !important;
		padding-top: 1.5rem !important;
		background-attachment: scroll;
	}
	
	.container-fluid {
		padding-left: 0.25rem !important;
		padding-right: 0.25rem !important;
		width: 100%;
	}
	
	.col-lg-4, .col-md-6, .col-sm-12, .col-xs-12 {
		padding: 0 8px;
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.login-form-card {
		padding: 0.75rem;
		border-width: 2px;
		border-radius: 6px;
		opacity: 0.95;
	}
	
	.login-logo-container {
		margin-bottom: 0.75rem;
	}
	
	.login-logo-img {
		max-height: 140px;
		padding: 8px;
		border-width: 2px;
		border-radius: 10px;
	}
	
	.form-group-login {
		margin-bottom: 0.75rem;
	}
	
	.form-input-login,
	.input-addon {
		padding: 12px 10px;
		font-size: 15px;
		min-height: 44px;
	}
	
	#password-input {
		padding-right: 42px;
	}
	
	.input-addon {
		min-width: 44px;
		font-size: 15px;
		padding: 12px;
	}
	
	.input-group-password #password-input {
		padding-right: 48px;
	}
	
	.password-toggle-btn {
		width: 42px;
		min-width: 42px;
		max-width: 42px;
		height: 42px;
		font-size: 15px;
	}
	
	.password-toggle-btn i {
		font-size: 15px;
	}
	
	.btn-login-submit {
		padding: 12px 14px;
		font-size: 15px;
		min-height: 44px;
		margin-top: 0.75rem;
	}
	
	.input-label {
		font-size: 12px;
		margin-bottom: 5px;
	}
	
	.login-register-link {
		margin-top: 0.75rem;
	}
	
	.register-link-text {
		font-size: 14px;
		padding: 6px 12px;
	}
}

/* Móvil Muy Pequeño (≤ 375px) */
@media (max-width: 375px) {
	.static-slider-head {
		padding: 0.5rem 0.15rem !important;
		padding-top: 1rem !important;
	}
	
	.container-fluid {
		padding-left: 0.15rem !important;
		padding-right: 0.15rem !important;
	}
	
	.col-lg-4, .col-md-6, .col-sm-12, .col-xs-12 {
		padding: 0 5px;
	}
	
	.login-form-card {
		padding: 0.75rem 0.5rem;
		border-width: 2px;
	}
	
	.login-logo-img {
		max-height: 120px;
		padding: 6px;
	}
	
	.form-input-login,
	.input-addon {
		padding: 10px 8px;
		font-size: 14px;
		min-height: 42px;
	}
	
	#password-input {
		padding-right: 40px;
	}
	
	.input-addon {
		min-width: 42px;
		font-size: 14px;
	}
	
	.input-group-password #password-input {
		padding-right: 45px;
	}
	
	.password-toggle-btn {
		width: 40px;
		min-width: 40px;
		max-width: 40px;
		height: 40px;
		font-size: 14px;
	}
	
	.password-toggle-btn i {
		font-size: 14px;
	}
	
	.btn-login-submit {
		padding: 10px 12px;
		font-size: 14px;
		min-height: 42px;
	}
	
	.input-label {
		font-size: 11px;
	}
}

/* Tablet intermedia (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
	.static-slider-head {
		padding: 2rem 1rem;
	}
	
	.col-md-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
	
	.login-form-card {
		padding: 1.25rem;
	}
}

/* Ajustes para orientación landscape en móviles */
@media (max-width: 767px) and (orientation: landscape) {
	.static-slider-head {
		min-height: auto;
		padding: 1rem 0.5rem !important;
	}
	
	.login-form-card {
		padding: 1rem;
	}
	
	.login-logo-img {
		max-height: 120px;
	}
}

/* Estilos para el modal de registro */
#modalRegistro .modal-content {
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#modalRegistro .modal-header {
	border-bottom: none;
	padding: 20px;
}

#modalRegistro .modal-body {
	padding: 30px;
}

#modalRegistro .btn-success {
	background-color: #25D366;
	border-color: #25D366;
	color: white;
	transition: all 0.3s ease;
}

#modalRegistro .btn-success:hover {
	background-color: #20ba5a;
	border-color: #20ba5a;
	transform: scale(1.05);
}

@media (max-width: 768px) {
	#modalRegistro .modal-body {
		padding: 20px;
	}
	
	#modalRegistro .btn-success {
		width: 100%;
		padding: 12px;
	}
}
