@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
*{
	font-family: "Roboto", sans-serif;
}
.logo{
	height: 80px;
}
.navbar{
	height: 108px;
}
.borde-nav{
	height: 7px;
	background: transparent linear-gradient(90deg, #AFCA0B 0%, #007A4B 100%) 0% 0% no-repeat padding-box;
	opacity: 1;
}
footer{
	height: 44px;
}
main{
	height: calc(100% - 108px - 44px);
	background: url(../img/FondoLogin.jpg) top left no-repeat;
	background-size: cover;
}
html,body{
	height: 100%;
	position: relative;
}
.main__content{
	max-width: 1170px;
}

/* New Login Card Styles */
.form__contet{
	width: 100%;
	max-width: 392px;
	padding: 0;
	background: url(../img/login-bg.jpg) top center no-repeat;
	background-size: cover;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	min-height: 480px;
}

.form__content__item {
	padding: 200px 30px 15px 30px;
	position: relative;
	z-index: 2;
}

/* Estilos específicos para el login (index.html) */
.login-form-content {
	padding: 270px 30px 15px 30px !important;
}

.login-form-container {
	min-height: 550px !important;
}

/* Decorative Curves */
.decorative-curves {
	position: absolute;
	top: 0;
	left: 0;
	width: 120px;
	height: 80px;
	z-index: 1;
	overflow: hidden;
}

.curves-svg {
	width: 100%;
	height: 100%;
}

/* Decorative Shapes */
.decorative-shapes {
	position: absolute;
	bottom: 80px;
	right: 0;
	width: 80px;
	height: 100px;
	z-index: 1;
}

.shape {
	position: absolute;
}

.shape-circle {
	width: 50px;
	height: 50px;
	background: linear-gradient(135deg, #C5E847 0%, #A8CC29 100%);
	border-radius: 50%;
	bottom: 20px;
	right: -10px;
}

.shape-rect {
	width: 30px;
	height: 50px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 5px;
	bottom: 0;
	right: 25px;
	transform: rotate(-15deg);
}

.shape-small-circle {
	width: 20px;
	height: 20px;
	background: rgba(197, 232, 71, 0.6);
	border-radius: 50%;
	bottom: 60px;
	right: 10px;
}

/* Login Logo */
.login-logo-container {
	text-align: center;
	margin-bottom: 30px;
}

.login-logo {
	margin-bottom: 10px;
}

.logo-icon {
	width: 80px;
	height: 50px;
}

.login-brand-name {
	font-size: 28px;
	font-weight: 300;
	color: #ffffff;
	letter-spacing: 2px;
	font-style: italic;
}

/* Login Input Fields */
.login-input {
	height: 50px;
	background: rgba(230, 230, 230, 0.95) !important;
	border: none !important;
	border-radius: 25px !important;
	padding: 12px 25px !important;
	font-size: 16px;
	color: #666 !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.login-input::placeholder {
	color: #999;
	font-weight: 400;
}

.login-input:focus {
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(197, 232, 71, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
	outline: none;
}

/* Ocultar el ícono de ojo para ver contraseña en todos los navegadores */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
	display: none !important;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-clear-button {
	display: none !important;
}

input[type="password"]::-webkit-textfield-decoration-container {
	display: none !important;
}

/* Login Button */
.btn-login {
	height: 50px;
	background: rgba(220, 220, 220, 0.95) !important;
	border: none !important;
	border-radius: 25px !important;
	font-size: 16px;
	font-weight: 500;
	color: #00A67D !important;
	letter-spacing: 2px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	margin-top: 10px;
}

.btn-login:hover {
	background: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-login:active {
	transform: translateY(0);
}

/* Recover Link */
.asignar {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	margin-top: 15px;
}

.recover-link {
	color: #C5E847;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.recover-link:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Floating Action Button */
.fab-container {
	text-align: center;
	padding-bottom: 15px;
	position: relative;
	z-index: 2;
}

.fab-button {
	width: 45px;
	height: 45px;
	background: linear-gradient(135deg, #00D4A8 0%, #00B894 100%);
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #ffffff;
	font-size: 24px;
	font-weight: 300;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 180, 148, 0.4);
	transition: all 0.3s ease;
}

.fab-button:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 25px rgba(0, 180, 148, 0.5);
}

.fab-button span {
	line-height: 1;
	margin-top: -2px;
}

/* Fields adjustment */
.fields {
	height: auto;
}

/* Bloqueado section */
.bloqueado {
	width: 100%;
	max-width: 392px;
	padding: 20px 43px;
	background: #fffd;
}

.bloqueado span {
	font-size: 20px;
	color: #007a4b;
	font-weight: 500;
}

/* Original styles preserved */
.loading {
	width: 100%;
	max-width: 392px;
	padding: 20px 43px;
	background: #fffd;
}

.form-control {
	height: 50px;
	border-bottom-color: #a1a1a1;
	border-left-color: #a1a1a1;
	border-right-color: #a1a1a1;
	border-top-color: #a1a1a1;
	border-style: solid;
	border-width: 1px;
	font-weight: 400;
	border-radius: 2px;
}

.form-label {
	font-size: 1em;
	color: #5b5b5b;
	margin-bottom: 0;
}

.main-title {
	height: 71px;
}

.form-control:focus {
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
	border-color: #66afe9;
}

.btn-primary {
	border-style: none;
	border-width: 0px;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	border-bottom-right-radius: 2px;
	border-bottom-left-radius: 2px;
	font-size: 1.2em;
	color: white;
	height: 3em;
	width: 18em;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24);
	background-image: linear-gradient(to bottom, #007a4b, #003d26);
}

.message {
	background-color: rgba(255,255,255,0.8);
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
	border-bottom-left-radius: 20px;
	margin-left: 10%;
	margin-right: 10%;
	padding-bottom: 17px;
	padding-left: 17px;
	padding-right: 17px;
	padding-top: 17px;
	text-align: center;
}

.message h3 {
	font-size: 36px;
}

.section-triangle {
	border-bottom: 20px solid transparent;
	border-left: 25px solid transparent;
	border-right: 25px solid transparent;
	border-top: 20px solid #FFFFFFCC;
	height: 0px;
	width: 0px;
}

.descargas img {
	height: 47px;
}

footer {
	background: #007a4b;
}

footer > div, .navbar .container-fluid {
	max-width: 1170px;
}

.loading-gif {
	filter: brightness(0) invert(1);
	opacity: 0.8;
}

/* Estilos para la página de verificación */
.loading-container .form__content__item {
	padding-top: 280px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
}

.loading-content {
	width: 100%;
}

.verificacion-container .form__content__item {
	padding-top: 180px;
}

.verificacion-content {
	padding-bottom: 10px;
}

.verificacion-container,
.loading-container {
	min-height: 480px;
	background: url(../img/verificacion-bg.jpg) top center no-repeat !important;
	background-size: cover !important;
}

.verificacion-icon {
	font-size: 36px;
	color: #C5E847;
}

/* Estilos para página de error (editar.php) */
.error-icon {
	font-size: 36px;
	color: #ff6b6b;
}

.error-message {
	color: #ffffff;
	font-weight: 600;
	background: rgba(255, 80, 80, 0.85);
	padding: 10px 18px;
	border-radius: 20px;
	display: inline-block;
	font-size: 13px;
	line-height: 1.4;
	box-shadow: 0 2px 10px rgba(255, 80, 80, 0.3);
}

.verificacion-header h4 {
	font-weight: 300;
	letter-spacing: 1px;
}

/* Input del código de verificación */
#token {
	text-align: center;
	letter-spacing: 8px;
	font-size: 20px;
	font-weight: 500;
}

#token::placeholder {
	letter-spacing: normal;
	font-size: 14px;
}

/* ========================================
   ESTILOS PARA MENSAJE DE FELICITACIÓN
   ======================================== */

.felicitacion-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s ease;
}

.felicitacion-overlay.mostrar {
	opacity: 1;
	visibility: visible;
}

.felicitacion-container {
	position: relative;
	padding: 20px;
	transform: scale(0.8);
	transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.felicitacion-overlay.mostrar .felicitacion-container {
	transform: scale(1);
}

.felicitacion-content {
	background: linear-gradient(145deg, #1a472a 0%, #0d2818 50%, #1a472a 100%);
	border-radius: 30px;
	padding: 40px 50px;
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow:
		0 0 30px rgba(197, 232, 71, 0.4),
		0 0 60px rgba(197, 232, 71, 0.2),
		0 0 100px rgba(0, 180, 148, 0.3),
		inset 0 0 30px rgba(197, 232, 71, 0.1);
	border: 3px solid;
	border-image: linear-gradient(135deg, #C5E847, #00D4A8, #FFD700, #C5E847) 1;
	animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
	0%, 100% {
		box-shadow:
			0 0 30px rgba(197, 232, 71, 0.4),
			0 0 60px rgba(197, 232, 71, 0.2),
			0 0 100px rgba(0, 180, 148, 0.3),
			inset 0 0 30px rgba(197, 232, 71, 0.1);
	}
	50% {
		box-shadow:
			0 0 50px rgba(197, 232, 71, 0.6),
			0 0 80px rgba(197, 232, 71, 0.4),
			0 0 120px rgba(0, 180, 148, 0.5),
			inset 0 0 50px rgba(197, 232, 71, 0.2);
	}
}

.felicitacion-content::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: conic-gradient(
		transparent,
		rgba(197, 232, 71, 0.1),
		transparent,
		rgba(0, 212, 168, 0.1),
		transparent
	);
	animation: rotateBg 4s linear infinite;
}

@keyframes rotateBg {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.felicitacion-icon {
	position: relative;
	z-index: 1;
	margin-bottom: 15px;
}

.felicitacion-icon i {
	font-size: 70px;
	color: #FFD700;
	text-shadow:
		0 0 20px rgba(255, 215, 0, 0.8),
		0 0 40px rgba(255, 215, 0, 0.6),
		0 0 60px rgba(255, 215, 0, 0.4);
	animation: pulseIcon 1.5s ease-in-out infinite;
}

@keyframes pulseIcon {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.1); }
}

.felicitacion-titulo {
	position: relative;
	z-index: 1;
	font-size: 28px;
	font-weight: 300;
	color: #ffffff;
	letter-spacing: 3px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.felicitacion-premio {
	position: relative;
	z-index: 1;
	font-size: 52px;
	font-weight: 900;
	background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: none;
	letter-spacing: 5px;
	margin-bottom: 20px;
	animation: textShine 2s ease-in-out infinite;
}

@keyframes textShine {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.3); }
}

.felicitacion-monto {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 25px;
	padding: 15px 30px;
	background: linear-gradient(135deg, rgba(197, 232, 71, 0.2), rgba(0, 212, 168, 0.2));
	border-radius: 50px;
	border: 2px solid rgba(197, 232, 71, 0.5);
}

.felicitacion-monto .signo {
	font-size: 36px;
	font-weight: 700;
	color: #C5E847;
}

.felicitacion-monto .cantidad {
	font-size: 48px;
	font-weight: 900;
	color: #ffffff;
	text-shadow:
		0 0 10px rgba(255, 255, 255, 0.5),
		0 0 20px rgba(197, 232, 71, 0.5);
	animation: numberPulse 1s ease-in-out infinite;
}

@keyframes numberPulse {
	0%, 100% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(197, 232, 71, 0.5); }
	50% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(197, 232, 71, 0.8); }
}

.felicitacion-monto .moneda {
	font-size: 20px;
	font-weight: 600;
	color: #C5E847;
	letter-spacing: 2px;
}

.felicitacion-mensaje {
	position: relative;
	z-index: 1;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.6;
	max-width: 350px;
	margin: 0 auto 20px;
	padding: 15px 20px;
	background: rgba(0, 180, 148, 0.2);
	border-radius: 15px;
	border: 1px solid rgba(0, 180, 148, 0.4);
}

.felicitacion-mensaje i {
	color: #25D366;
	font-size: 22px;
	margin-right: 8px;
	vertical-align: middle;
}

.felicitacion-estrellas {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	gap: 15px;
}

.felicitacion-estrellas i {
	font-size: 30px;
	color: #FFD700;
	animation: starBlink 0.8s ease-in-out infinite;
	text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.felicitacion-estrellas i:nth-child(2) {
	animation-delay: 0.2s;
}

.felicitacion-estrellas i:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes starBlink {
	0%, 100% { opacity: 0.6; transform: scale(0.9); }
	50% { opacity: 1; transform: scale(1.1); }
}

/* Responsive para felicitación */
@media (max-width: 676px) {
	.felicitacion-content {
		padding: 30px 25px;
		margin: 15px;
	}

	.felicitacion-icon i {
		font-size: 50px;
	}

	.felicitacion-titulo {
		font-size: 22px;
	}

	.felicitacion-premio {
		font-size: 38px;
	}

	.felicitacion-monto .signo {
		font-size: 28px;
	}

	.felicitacion-monto .cantidad {
		font-size: 36px;
	}

	.felicitacion-monto .moneda {
		font-size: 16px;
	}

	.felicitacion-mensaje {
		font-size: 14px;
		padding: 12px 15px;
	}

	.felicitacion-estrellas i {
		font-size: 24px;
	}
}

@media (max-width: 400px) {
	.felicitacion-content {
		padding: 25px 20px;
	}

	.felicitacion-icon i {
		font-size: 40px;
	}

	.felicitacion-titulo {
		font-size: 18px;
	}

	.felicitacion-premio {
		font-size: 32px;
	}

	.felicitacion-monto {
		padding: 10px 20px;
		flex-wrap: wrap;
	}

	.felicitacion-monto .signo {
		font-size: 24px;
	}

	.felicitacion-monto .cantidad {
		font-size: 30px;
	}

	.felicitacion-monto .moneda {
		font-size: 14px;
		width: 100%;
	}

	.felicitacion-mensaje {
		font-size: 13px;
	}
}

@media (max-width: 676px) {
	footer > div {
		flex-direction: column;
		gap: 7px!important;
	}
	footer {
		height: auto;
		padding: 8px 16px;
		font-size: 13px;
	}
	main {
		height: auto;
		padding: 15px;
	}
	.main__content {
		justify-content: center;
	}
	.col-sm-4 {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.bloqueado {
		display: none;
	}
	.bloqueado span {
		font-size: 16px;
	}
	.asignar {
		font-size: 13px;
	}
	/* Mantener el mismo aspecto del login en móvil */
	.form__contet {
		width: 100%;
		max-width: 392px;
		min-height: 620px;
		border-radius: 20px;
		background-size: cover;
		background-position: top center;
	}
	.form__content__item {
		padding: 260px 35px 40px 35px;
	}
	.login-input {
		height: 50px;
		border-radius: 25px !important;
		padding: 12px 25px !important;
		font-size: 16px;
	}
	.btn-login {
		height: 50px;
		border-radius: 25px !important;
		font-size: 16px;
	}
	.fab-button {
		width: 50px;
		height: 50px;
	}
	/* Ajustes para verificación y editar en móvil */
	.verificacion-container .form__content__item,
	.loading-container .form__content__item {
		padding-top: 190px;
	}
	.verificacion-container,
	.loading-container {
		min-height: 520px;
	}
	.loading-content h4 {
		font-size: 16px;
	}
	/* Mostrar ícono pequeño en móvil */
	.verificacion-header {
		margin-bottom: 8px !important;
	}
	.verificacion-header h4 {
		font-size: 14px;
		margin-top: 5px !important;
	}
	.verificacion-icon,
	.error-icon {
		display: inline-block !important;
		font-size: 20px !important;
	}
	/* Subir formulario del login (index.html) en móvil */
	.login-form-content {
		padding: 220px 25px 15px 25px !important;
	}
	.login-form-container {
		min-height: 480px !important;
	}
}

/* Para pantallas muy pequeñas */
@media (max-width: 400px) {
	.form__contet {
		max-width: 100%;
		border-radius: 15px;
		min-height: 550px;
	}
	.form__content__item {
		padding: 220px 25px 30px 25px;
	}
	/* Verificación en pantallas pequeñas */
	.verificacion-container .form__content__item,
	.loading-container .form__content__item {
		padding-top: 170px;
	}
	.verificacion-container,
	.loading-container {
		min-height: 480px;
	}
	.verificacion-icon,
	.error-icon {
		font-size: 18px !important;
	}
	.login-input {
		height: 45px;
		font-size: 15px;
	}
	.btn-login {
		height: 45px;
		font-size: 15px;
	}
	.asignar {
		font-size: 12px;
	}
	.fab-button {
		width: 45px;
		height: 45px;
		font-size: 24px;
	}
	/* Login en pantallas muy pequeñas */
	.login-form-content {
		padding: 200px 20px 12px 20px !important;
	}
	.login-form-container {
		min-height: 450px !important;
	}
}
