@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap');

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #83b736;
}

.main-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    min-height: 100vh;
}

/* COLUMNA IZQUIERDA */
.main-cont {
    background: #212e0d;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desc-header {
    width: 100%;
    text-align: center;  
}

.desc-header img {
    width: 45%;
    max-width: 220px;
}

.desc-header p {
    font-size: 5em;
    color: #336666;
}

/* COLUMNA DERECHA */
.cont-header {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.cont-header h1 {
    color: #336666;
    font-size: 50px;
    margin-bottom: 10px;
}

/* FORMULARIO */
.cont-header form {
    background-color: #edfad9;
    width: 350px;
    max-width: 95%;
    border: 1px solid #336666;
    padding: 1.5rem;
    margin: 2rem auto;
    border-radius: 1em;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cont-header form label {
    display: block;
    padding: 10px 0 5px;
    font-size: 22px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 17px;
    text-align: center;
}

button {
    width: 100%;
    padding: .8em;
    border: none;
    border-radius: 8px;
    background: #153744;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
}

button:hover {
    background: #1c5366;
}

/* MENSAJE DE ERROR */
.alert {
    color: red;
    font-size: 16px;
    margin: 10px 0;
}

/* -----------------------------------------------------
   📱📱📱 RESPONSIVE
----------------------------------------------------- */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .main-header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-cont {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .desc-header p {
        font-size: 3.5em;
    }

    .cont-header h1 {
        font-size: 40px;
    }
}

/* Celulares grandes */
@media (max-width: 768px) {
    .desc-header img {
        width: 40%;
    }

    .desc-header p {
        font-size: 3em;
    }

    .cont-header h1 {
        font-size: 32px;
    }
}

/* Celulares pequeños */
@media (max-width: 480px) {
    .desc-header img {
        width: 55%;
    }

    .desc-header p {
        font-size: 2.4em;
    }

    .cont-header h1 {
        font-size: 28px;
    }

    .cont-header form {
        width: 100%;
        padding: 1rem;
    }

    .cont-header form label {
        font-size: 18px;
    }

    input {
        font-size: 16px;
        padding: 10px;
    }

    button {
        font-size: 16px;
        padding: .7em;
    }
}

/* Ajuste para móviles Android */
@media (max-width: 768px) {
    .main-header {
        grid-template-columns: 1fr !important;
        height: auto !important;
        min-height: 100vh;
    }

    .main-cont {
        height: auto !important;
        min-height: 40vh;
        padding: 2rem 0;
    }

    body {
        height: auto !important;
        min-height: 100vh;
    }
}
