/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url("../img/fondoim.jpg") no-repeat center center;
    background-size: cover;
    padding: 20px;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 900px;
    background: rgba(61, 50, 60, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(1, 128, 255, 0.3);
    justify-content: center; /* Asegura alineación en dispositivos pequeños */
}

/* Secciones */
.register-box, .login-box {
    flex: 1;
    min-width: 320px;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
}

/* Registro */
.register-box {
    background: linear-gradient(135deg, #ffcc00, #ff00ff);
    color: #ffffff;
}

/* Login */
.login-box {
    background: linear-gradient(135deg, #000, #007bff);
    color: #ffffff;
}

/* Textos */
h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* Botones */
button {
    width: 100%;
    background: #ffcc00;
    border: none;
    padding: 14px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: #ff9900;
}

/* Inputs */
input {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

/* Enlace de recuperación */
.forgot-password {
    display: block;
    margin-top: 10px;
    color: #ffcc00;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ===========================
        MEDIA QUERIES
=========================== */

/* Para pantallas medianas (menos de 900px) */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        width: 95%;
    }

    .register-box, .login-box {
        width: 100%;
        padding: 30px;
    }
}

/* Para pantallas pequeñas (menos de 600px) */
@media (max-width: 600px) {
    .container {
        width: 100%;
        padding: 15px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }

    input, button {
        font-size: 14px;
        padding: 10px;
    }
}

/* Para pantallas muy pequeñas (menos de 400px) */
@media (max-width: 400px) {
    h2 {
        font-size: 20px;
    }

    p {
        font-size: 12px;
    }

    input, button {
        font-size: 12px;
        padding: 8px;
    }
}
