@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
	box-sizing: border-box;
}

body {
	margin: auto;
	font-family: -apple-system, BlinkMacSystemFont, sans-serif;
	overflow: auto;
	background: linear-gradient(315deg, #352460e8 3%, #352460 38%, #352460ea 68%, #352460 98%);
	animation: gradient 120s ease infinite;
	background-size: 400% 400%;
	background-attachment: fixed;
    font-size: 11px;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	font-family: 'Montserrat', sans-serif;
	height: 100vh;
	margin: -20px 0 50px;
	overflow: hidden;
}

@keyframes gradient {
	0% {
		background-position: 0% 50%; /* Inicia a la izquierda central */
	}
	20% {
		background-position: 50% 100%; /* Se mueve hacia abajo central */
	}
	40% {
		background-position: 100% 50%; /* Se mueve hacia la derecha central */
	}
	60% {
		background-position: 50% 0%; /* Se mueve hacia arriba central */
	}
	80% {
		background-position: 0% 50%; /* Regresa a la izquierda central */
	}
	100% {
		background-position: 50% 50%; /* Termina en el centro */
	}
}

.wave {
	background: rgba(255, 255, 255, 0.171);
	border-radius: 1000% 1000% 0 0;
	position: fixed;
	width: 200%;
	height: 12em;
	animation: wave 10s -3s linear infinite;
	transform: translate3d(0, 0, 0);
	opacity: 0.8;
	bottom: 0;
	left: 0;
	z-index: -1;
}

.wave:nth-of-type(2) {
	bottom: -1.25em;
	animation: wave 18s linear reverse infinite;
	opacity: 0.8;
}

.wave:nth-of-type(3) {
	bottom: -2.5em;
	animation: wave 20s -1s reverse infinite;
	opacity: 0.9;
}

@keyframes wave {
	2% {
		transform: translateX(1);
	}

	25% {
		transform: translateX(-25%);
	}

	50% {
		transform: translateX(-50%);
	}

	75% {
		transform: translateX(-25%);
	}

	100% {
		transform: translateX(1);
	}
}

button {
	border-radius: 10px;
	border: 1px solid #fbbc001e;
	background-color: #FBBD00;
	color: #FFFFFF;
	font-size: 10px;
	font-weight: bold;
	padding: 8px 30px;
	letter-spacing: 1px;
	transition: transform 80ms ease-in;
}

button.ingresar {
	border-radius: 10px;
	border: 1px solid #0000001e;
	background-color: #FFDD33;
	color: #020202;
	font-size: 10px;
	font-weight: bold;
	padding: 8px 30px;
	min-width: 240px; /* ← forzar ancho mínimo */
	text-align: center;
	letter-spacing: 1px;
	transition: transform 80ms ease-in;
}

button:hover {
	background-color: #593ba4;
	color: #f8f8f8;
	transform: scale(1.1);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);

}

button:active {
	transform: scale(0.95);
}

.forinicio {
	background-color: #352460;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	height: 100%;
	text-align: center;
}

.container {
	background-color: #ffffff00;
	border-radius: 10px;
	border: rgba(255, 255, 255, 0.212) 2px solid;
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
	position: absolute; /* Cambiar a absolute */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%); /* Centrado perfecto */
	overflow: hidden;
	width: 350px;
	max-width: 100%;
	min-height: 420px;
}

.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 2;
}


.dialogrec {
	border-radius: 15px;
	width: 400px;
	background-color: #352460;
	border: none;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
	padding: 25px;
	color: white;
}

.dialogrec h5 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 15px;
	color: white;
	text-align: center;
	letter-spacing: 0.5px;
}

.dialogrec small {
	display: block;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 20px;
	text-align: center;
	font-size: 13px;
	line-height: 1.4;
}

.dialogrec .form-group {
	margin-bottom: 20px;
}

.dialogrec .form-control {
	background-color: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: white;
	height: 40px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.dialogrec .form-control:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: #FBBD00;
	box-shadow: 0 0 0 2px rgba(251, 189, 0, 0.2);
	color: white;
}

.dialogrec .form-control::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.dialogrec button {
	min-width: 100px;
	height: 38px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
}

.dialogrec button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(251, 189, 0, 0.3);
}

.dialogrec button:active {
	transform: translateY(0);
}

.dialogrec #submitBtn {
	background-color: #FBBD00;
	border-color: #FBBD00;
	color: #352460;
}

.dialogrec #closeDialogButton {
	background-color: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
}

.dialogrec #closeDialogButton:hover {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
}

.dialoginv {
	border-radius: 10px;
	width: 450px;
	background-color: rgba(255, 255, 255, 0.932);
	border: 2px #352460 solid;
}

.bounce-in-top {
	animation: bounce-in-top 1.1s both
}

@keyframes bounce-in-top {
	0% {
		-webkit-transform: scale(2);
				transform: scale(2);
		-webkit-filter: blur(4px);
				filter: blur(4px);
		opacity: 0;
	  }
	  100% {
		-webkit-transform: scale(1);
				transform: scale(1);
		-webkit-filter: blur(0px);
				filter: blur(0px);
		opacity: 1;
	  }
	}
	@keyframes puff-in-center {
	  0% {
		-webkit-transform: scale(2);
				transform: scale(2);
		-webkit-filter: blur(4px);
				filter: blur(4px);
		opacity: 0;
	  }
	  100% {
		-webkit-transform: scale(1);
				transform: scale(1);
		-webkit-filter: blur(0px);
				filter: blur(0px);
		opacity: 1;
	  }
}

.inputGroup {
	font-family: 'Segoe UI', sans-serif;
	padding: 10px;
	position: relative;
	min-height:5px; /* Más aire arriba para el label flotante */
}

/* input */
.inputGroup input {
	text-align: center;
	color: white;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Borde limpio */
	outline: none;
	background-color: rgba(255, 255, 255, 0.1); /* Fondo ligeramente transparente */
	border-radius: 10px;
	width: 300px;
	height: 30px;
	/* Combinando estilos de sombra */
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Sombra sutil en estado base */
	transition: all 0.4s ease-in-out; /* Aumentar duración de transición */
	padding: 0 15px;
	position: relative; /* Crear contexto de apilamiento para controlar z-index del input */
	z-index: 1;
}

/* Efecto al pasar el cursor */
.inputGroup input:hover {
	border-color: rgba(255, 255, 255, 0.5); /* Borde más visible */
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Sombra un poco más pronunciada al pasar el cursor */
}

/* Efecto al hacer clic y enfocar */
.inputGroup input:active,
.inputGroup input:focus {
	background-color: rgba(255, 255, 255, 0.2); /* Fondo más visible al enfocar */
	border-color: #FBBD00; /* Color de borde de enfoque */
	box-shadow: 0 0 10px rgba(251, 189, 0, 0.7); /* Aumentar tamaño y opacidad de la sombra (glow) */
}

.inputselc {
	color: white;
	font-size: 100%;
	border: 1px solid rgba(255, 255, 255, 0.3); /* Borde limpio */
	border-radius: 10px;
	background-color: rgba(255, 255, 255, 0.1); /* Fondo ligeramente transparente */
	width: 350px;
	height: 30px;
    padding-left: 5px; /* Ajustar padding */
	cursor: pointer;

    /* Combinando estilos de sombra */
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Sombra sutil en estado base */
    transition: all 0.4s ease-in-out; /* Aumentar duración de transición */
}

.inputselc:hover {
	border-color: rgba(255, 255, 255, 0.5); /* Borde más visible */
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); /* Sombra un poco más pronunciada */
}

.inputselc:focus {
	background-color: rgba(255, 255, 255, 0.2); /* Fondo más visible al enfocar */
	border-color: #FBBD00; /* Color de borde de enfoque */
	box-shadow: 0 0 10px rgba(251, 189, 0, 0.7); /* Aumentar tamaño y opacidad de la sombra (glow) */
}

/* texto interno */
.inputGroup label {
  font-size: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  margin-left: 1.7em;
  pointer-events: none;
  transition: all 0.3s ease;
  color: rgb(255, 255, 255);
  z-index: 3; /* Asegurar que el label flote sobre el input */
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); /* Mejor legibilidad sin caja */
}

/* animación al subir */
.inputGroup :is(input:focus, input:valid) ~ label {
  transform: translateY(-195%) scale(0.85); /* Altura óptima sin recortar ni tapar */
  margin-left: 1.2em;
  color: #fffefb;
}

.inputGroup :is(input:focus, input:valid) {
	border-color: #FFDD33;
}

/* Evitar que el indicador de mayúsculas afecte el layout */
#capslock-indicator {
	position: absolute;
	top: 36px; /* Ajuste fino bajo el input sin generar hueco visual */
	left: 0;
	width: 100%;
	text-align: center;
}

/* Separación entre grupos para que los labels no se encimen */
.inputGroup + .inputGroup {
	margin-top: 3px;
}

/* Estado inicial (oculto) */
#passwordGroup {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden; /* Ocultar completamente */
  transform: translateY(-10px);
  transition: all 0.5s ease;
}

/* Cuando se activa */
#passwordGroup.show {
  max-height: 150px;
  opacity: 1;
  visibility: visible; /* Mostrar otra vez */
  transform: translateY(0);
  overflow: visible; /* Evita que el label flotante sea recortado */
}
