@import url("https://fonts.googleapis.com/css2?family=Mukta:wght@200;300;400;500;600;700;800&display=swap");

* {
    margin: 0;
    padding: 0;
    font-family: system-ui;
    box-sizing: border-box;
}

body {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #250821; /* Fondo morado */
    position: relative;
}

.frame {
    height: 380px;
    width: 390px;
    backdrop-filter: blur(5px);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 0px 5px white;
    z-index: 1; /* Asegurarse de que el formulario esté encima de la animación */
}

.frame1 {
    height: 470px;
    width: 410px;
    backdrop-filter: blur(5px);
    border: 1px solid white;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0px 0px 5px white;
    z-index: 1; /* Asegurarse de que el formulario esté encima de la animación */
}

.login {
    font-size: 50px;
    font-weight: bold;
    color: white;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

.email,
.password {
    width: 90%;
    height: auto;
    display: flex;
    align-items: center;
    margin: 0.5rem;
    position: relative;
}

.email input,
.password input {
    padding: 8px 8px 8px 15px;
    background: transparent;
    border: none;
    width: 300%;
    border: 1px solid #cecece;
    border-radius: 50px;
    font-size: 17px;
    outline: none;
    font-weight: bold;
}

.email input::placeholder,
.password input::placeholder {
    color: white;
    font-weight: bold;
}

.email img,
.password img {
    position: absolute;
    right: 0.7rem;
}

/* General field styling */
.field {
    width: 90%;
    margin: 0.5rem 0;
    position: relative;
}

.field input,
.field select {
    padding: 8px 15px;
    border: 1px solid #cecece;
    border-radius: 50px;
    width: 100%;
    font-size: 17px;
    color: white; /* Color del texto en blanco */
    outline: none;
    font-weight: bold;
    background: transparent; /* Fondo transparente por defecto */
}

/* Estilo específico para el campo de selección (tipo de usuario) */
.field select {
    text-align: center; /* Centra el texto dentro del select */
}

/* Campo select (tipo de usuario) */
.field select {
    background: transparent; /* Fondo transparente por defecto */
    color: white; /* Color del texto en blanco */
    appearance: none; /* Elimina el estilo predeterminado del select */
    -webkit-appearance: none; /* Elimina el estilo predeterminado en navegadores WebKit */
}

/* Mostrar el fondo de color solo al seleccionar */
.field select:focus {
    background-color: rgba(0, 0, 0, 0.322); /* Fondo negro al seleccionar */
}

/* Opcional: Añadir una flecha personalizada para el select */
.field select::-ms-expand {
    display: none; /* Oculta la flecha predeterminada en IE y Edge */
}

.field select:focus::-ms-value {
    color: rgb(255, 255, 255); /* Asegura que el texto se mantenga blanco en IE y Edge */
}

.my-form__button {
    width: 90%;
    padding: 10px;
    margin-top: 1rem;
    font-size: 25px;
    font-weight: bold;
    outline: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;

}

.log {
    width: 90%;
    padding: 10px;
    margin-top: 1rem;
    font-size: 25px;
    font-weight: bold;
    outline: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

.reg {
    margin-top: 1.5rem;
    color: rgb(0, 0, 0);
}
/*
.reg a {
    font-weight: bold;
    color: white;
}*/

/* Estilos para la animación de la figura */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%; /* Centrado vertical */
    left: 50%; /* Centrado horizontal */
    transform: translate(-50%, -50%); /* Ajuste para centrar completamente */
}

.blob:nth-child(2) {
    filter: blur(50px);
}

/*======MENSAJE CUENTA CREADA========*/

/* Mensaje de éxito */
#success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
    display: none;
    z-index: 1000;
}

/*======MENSAJE ERROR CORREO========*/

 /* Mensaje de error */
 #error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #f44336; /* Rojo para el error */
    color: white;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    text-align: center;
}

.error-message1 {
    display: none; /* Inicialmente oculto */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.8); /* Color de fondo */
    color: white; /* Color de texto */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 9999; /* Aparece sobre todo el contenido */
    font-size: 18px;
    text-align: center;
}



/*======PAGINA DE CARGA========*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #250821;
}
.loader
{
    position: relative;
    cursor: default;
    -webkit-box-reflect: below -25px linear-gradient(transparent,
    #0005);
}
.loader span
{
    position: relative;
    display: inline-flex;
    font-size: 9em;
    color: transparent;
    -webkit-text-stroke: 1px #fff9;
    text-transform: uppercase;
    font-weight: 800;
    animation: animate 2s ease-in-out infinite;
    animation-delay: calc(0.15s * var(--i));
}
@keyframes animate
{
    0%
    {
        transform: translateY(0px);
        color: transparent;
        text-shadow: none;
    }
    20%
    {
        transform: translateY(-60px);
        color: #fff;
        text-shadow: 0 0 5px #fff,
        0 0 25px #fff,
        0 0 50px #fff;
    }
    40%,100%
    {
        transform: translateY(0px);
        color: transparent;
        text-shadow: none;
    }
}

