/* 📌 Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 📌 Contenedor Principal */
.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background: url("../images/background.jpeg") no-repeat 50% 30%;
    background-size: cover;
    position: relative;
}

/* 📌 Capa Oscura */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1;
}

/* 📌 Degradado Naranja Inferior */
.gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(to top, #FF9D00 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

/* 📌 Contenedor del Logo */
.logo-container {
    z-index: 2;
    position: absolute;
    top: 25px;
    bottom: 0;
    left: 25px;
}

.logo {
    width: 250px;
    max-width: 80%;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* 📌 Formulario */
.formulario {
    background-color: rgba(255, 255, 255, 0.9);
    width: 500px;
    height: 330px;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.8);
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: 0.3s; /*  Hace que el formulario aparezca después del logo */
}

.formulario h1 {
    font-size: 30px;
    font-family:'1';
    margin-bottom: 15px;
    color: #000000;
}

/* 📌 Estilos del Input */
.formulario input {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 2px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease-in-out;
}

/* 📌 Placeholder dentro del Input */
.formulario input::placeholder {
    color: #767676; /*  Color gris claro para el texto */
    font-size: 14px;
    font-weight: bold;
}

/* 📌 Efecto cuando el usuario escribe */
.formulario input:focus {
    border: 2px solid #FF7931;
    background-color: white;
}


/* 📌 Botón */
.formulario button {
    width: 75%;
    padding: 13px;
    font-size: 16px;
    font-weight: bold;
    background-color: #FF7931;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
}

.formulario button:hover {
    background-color: rgb(194, 68, 0);
}

/* 📌 Mensaje de Error */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 10px;
}

/* 📌 Definimos la animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px); /* 🔥 Hace que el formulario suba suavemente */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    /* 📌 Ajustamos el Fondo */
    .container {
        background: none;
        background-color: #ffffff;
        position: relative;
        overflow: hidden;
        z-index: 4;
    }

    /* 📌 Contenedor del Logo */
    .logo-container {
        position: absolute;
        top: 2%;
        left: 2;
        right: 0;
        margin: auto;
        justify-content: center;
        text-align: center;
        z-index: 10;
    }

    .logo {
        width: 65%;
        max-width: 80%;
    }

    /* 📌 Nueva Capa para la Imagen Superior */
    .top-background {
        position: absolute;
        top: 0;
        width: 350%;
        height: 500px;
        background: url("../images/background.jpeg") no-repeat 50% 55%;
        background-size: cover;
        z-index: 2;

        /* 🔥 Clip-path para darle forma curva */
        clip-path: ellipse(33% 85% at center top);
    }

    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(0.75px);
        z-index: 3;
    }


    /* 📌 Mantener el Degradado Inferior */
    .gradient-bottom {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 35%;
        background: linear-gradient(to top, #FF9D00 0%, rgba(0, 0, 0, 0) 100%);
        z-index: 3;
    }

    /* 📌 Formulario */
    .formulario {
        background-color: rgba(255, 255, 255);
        width: 85%;
        height: 60%;
        padding: 20px;
        border-radius: 50px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.9);
        z-index: 10;
        position: absolute;
        top: 30vh; /* 🔥 Ajuste para que se solape mejor */
        text-align: center;
    }

    .formulario h1 {
        position: relative;
        font-size: 34px;
        font-family:'1';
        margin-bottom: 35px;
        color: #000000;
        top: 20px;
    }
    
    /* 📌 Estilos del Input */
    .formulario input {
        position: relative;
        width: 100%;
        padding: 12px 15px;
        margin-top: 10px;
        border: 2px solid #ccc;
        border-radius: 10px;
        font-size: 16px;
        outline: none;
        background-color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease-in-out;
        top: 20px;
    }

        /* 📌 Botón */
    .formulario button {
        position: absolute;
        bottom: 8%; /*  Lo mantiene dentro del formulario */
        left: 50%;
        transform: translateX(-50%); /*  Centra horizontalmente */
        width: 85%;
        padding: 14px;
        font-size: 30px;
        font-weight: bold;
        background-color: #FF7931;
        color: white;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        transition: 0.3s;

    }

    .formulario button:hover {
        background-color: rgb(194, 68, 0);
    }

    /* 📌 Ajustes para pantallas bajas (menos de 600px de altura) */
@media (max-height: 768px) {
    .logo-container {
        top: 2%; /*  Reduce el espacio superior del logo */
    }

    .logo{
        max-width: 60%;
        width: 100%;
    }
    

    .formulario {
        height: 60%; /*  Reduce la altura del formulario */
        top: 32%; /*  Lo mueve un poco más arriba */
        padding: 16px;
    }

    .formulario h1 {
        font-size: 28px; /*  Reduce el tamaño del título */
        margin-bottom: 20px;
    }

    .formulario input {
        font-size: 14px;
        padding: 10px;
    }

    .formulario button {
        font-size: 24px;
        padding: 12px;
        bottom: 5%; /*  Ajusta la posición del botón */
    }

    .top-background {
        position: absolute;
        top: 0;
        width: 350%;
        height: 65vh;
        background: url("../images/background.jpeg") no-repeat 50% 55%;
        background-size: cover;
        z-index: 2;

        /* 🔥 Clip-path para darle forma curva */
        clip-path: ellipse(33% 85% at center top);
    }
}

/* 📌 Ajustes para pantallas aún más bajas (menos de 500px de altura) */
@media (max-height: 631px) {

    
    .formulario {
        height: auto; /*  Permite que el contenido se ajuste */
        min-height: 55%;
        top: 30vh;
        padding: 20px;
    }

    .logo-container {
        top: 2%; /*  Reduce el espacio superior del logo */
    }

    .logo{
        max-width: 50%;
        width: 100%;
    }

    .formulario h1 {
        font-size: 26px;
    }

    .formulario button {
        font-size: 22px;
        padding: 10px;
        bottom: 3%;
    }
}

@media (max-height: 544px) {

    
    .formulario {
        height: 40vh; 
        top: 30vh;
        padding: 20px;
    }

    .logo-container {
        top: 2%; /* Reduce el espacio superior del logo */
    }

    .logo{
        max-width: 30vh;
        width: 100%;
    }

    .formulario h1 {
        font-size: 26px;
    }

    /* 📌 Estilos del Input */
    .formulario input {
        position: relative;
        width: 90%;
        padding: 3%;
        margin-top: 2%;
        border: 2px solid #ccc;
        border-radius: 10px;
        font-size: 16px;
        outline: none;
        background-color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s ease-in-out;
        top: 20px;
    }

    .formulario button {
        position: absolute;
        width: 100%;
        max-width: 66%;
        font-size: 22px;
        padding: 3%;
        bottom: 4%;
    }
}


}






