@import "https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap";

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: linear-gradient(45deg, #1a1a1a, #2c2c2c);
}

.texto-informativo {
    text-align: center;
}

img {
    width: 80px;
    margin-bottom: 10px;
    height: auto;
    align-self: center;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: #303030;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.acierto {
    z-index: 1000; 
    position: fixed; 
    top: 15px; /* Desde la parte superior */
    transform: translate(-50%, 0); /* Ajusta la posición para que quede justo en el centro */
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: rgb(37, 116, 40); /* Color verde para el acierto */
    color: white; 
    height: 40px; 
    border-radius: 10px; 
    padding: 10px 20px; 
    opacity: 0; /* Inicialmente oculto */
    transform: scale(0.8); /* Comienza pequeño */
    transition: all 0.4s ease; /* Transición suave */
}

.acierto.show { 
    opacity: 1; /* Se hace visible */
    transform: scale(1); /* Se agranda hasta tamaño normal */
}

.error {
	z-index: 100; 
	position: fixed; 
	top: 15px; 
	transform: translate(-50%, 0); 
	display: flex; 
	justify-content: center; 
	align-items: center; 
	background-color: rgb(207, 23, 23); 
	color: white; 
	height: 40px; 
	border-radius: 10px; 
	padding: 10px 20px; 
	opacity: 0; 
	transform: scale(0.8); 
	transition: all 0.4s ease; 
}

.error.show { 
	opacity: 1; 
	transform: scale(1); 	
}

@keyframes quitar_mensaje {
    0% {
        opacity: 0;
        transform: scale(0.8); /* Comienza pequeño y sin moverlo */
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.8); /* Termina pequeño, sin movimiento */
    }
}

form {
    width: 230px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px 30px 10px 30px;
    color: white;
}

form input {
    display: flex;
    padding: 10px 15px;
    font-size: 12px;
    width: 100%;
    height: 35px;
    border: none;
    border-radius: 50px;
    outline: none;
    color: rgb(255, 255, 255) !important;
    background-color: rgb(55, 55, 55);
    margin: 0;
}

form label {
    font-size: 12.5px;
    font-weight: 500;
    display: block;
    margin: 8px 0 4px;
}

form h2 {
    display: flex;
    align-self: center;
    margin-bottom: 8px;
    justify-content: center;
}

form a {
    color: #4CAF50;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    align-self: center;
    justify-content: center;
    align-items: center;
}

form a:hover {
    color: #45a049;
}

.boton {
    display: flex;
    justify-content: center;
    align-self: center;
    padding: 0;
    width: 180px;
    font-size: 15px;
    margin-top: 15px;
    background-color: rgb(44, 44, 44);
}

.boton:hover {
    background-color: rgb(40, 40, 40);
}

@media (max-width: 768px) {
    form {
        width: 200px;
        margin: 10px 20px;
    }
    * {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		font-family: "Poppins", sans-serif;
	}

	body {
		height: 100vh;
	}

    img {
        width: 70px;
    }

    form input {
        font-size: 11px;
        height: 32px;
    }

    form label {
        font-size: 11.5px;
    }

    form h2 {
        font-size: 18px;
    }

    .boton {
        width: 160px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    * {
		margin: 0;
		padding: 0;
		box-sizing: border-box;
		font-family: "Poppins", sans-serif;
	}

	body {
		height: 100vh;
	}

    form {
        width: 180px;
    }

    img {
        width: 60px;
    }

    form input {
        font-size: 10px;
        height: 30px;
    }

    form label {
        font-size: 11px;
    }
}