/* Reset CSS */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: inline-block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Landing styles*/
body {
    font-family: sans-serif;
    background: url('../../img/background_001.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    min-height: 100vh;
    align-items: center;

}

.font-primary--bold {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: bolder;
    font-style: normal;
}

.font-primary--semi-bold {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

.font-primary--regular {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
}

.font-primary--light {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.login__form {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 24px;
    color: #222;
    margin-left: 24px;
    margin-right: 24px;
    margin-top: 16px;
}

.login__form--image {
    width: 100%;
    max-width: 260px;
    margin-right: auto;
    margin-left: auto;
}

.login__form--image img {
    width: 100%;
    height: auto;
    display: inline-block;
}

.login__form--title span {
    font-size: 16px;
    color: gray;
}

/* Style the input container */
.input-form {
    position: relative;
    display: inline-block;
    width: 100%;
}

.input-form:first-child {
    margin-bottom: 8px;
    margin-top: 8px;
}

.input-form__icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.input-form__field {
    padding: 8px 8px 8px 56px;
    width: 100%;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 32px;
    height: 3rem;
}

.input-form__field:focus {
    border: 0.5px solid darkgray;
}

.input-form__field:focus-visible {
    outline: 0.5px solid darkgray;
}

.login__form--text-help {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.login__form button {
    padding: 8px 20px;
    width: 200px;
    height: 40px;
    background-color: #004e8e;
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 16px;
}

.login__information--container {
    margin-left: 24px;
    margin-right: 24px;
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.login__information--title {
    font-size: 18px;
    line-height: 18px;
}

.login__information--text {
    font-size: 10px;
    text-align: justify;
}

.login__information span {
    font-size: 9px;
    display: block;
    margin-bottom: 10px;
}

.login__download--mobile {
    display: block;
    text-align: center;
}

.login__download--mobile-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.login__download--mobile-icons {
    text-align: right;
}

.login__download__text {
    font-size: 10px;
    font-weight: 600;
}

.login__download__playstore {
    width: 148px;
    display: block;
    margin-bottom: 10px;
}

.login__download__android {
    width: 106px;
    text-align: right;
    align-self: end;
}

.login__download {
    display: none;
}

.login__information--end-desktop {
    display: none;
}

.login__information--end-mobile {
    font-size: 9px;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 16px;
}

.login__download__QR {
    width: 82px;
    height: auto;
    align-self: start;
}

.login__form--container {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    max-width: 1000px;
}

.footer__mobile {
    display: block;
    text-align: center;
    color: #fff;
    margin-top: 24px;
}

footer.footer {
    display: none;
}

.footer__link {
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer__link span {
    font-size: 11px;
}

.footer__link img {
    width: 12px;
    height: auto;
}

.footer__copy {
    font-size: 6.5px;
    display: block;
}

@media (min-width: 992px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .input-form {
        width: auto;
    }


    .input-form__field {
        width: 260px;
        padding-left: 56px;
    }

    .login__form {
        max-width: 1164px;
        display: flex;
        padding: 16px 40px;
        justify-content: space-between;
        gap: 30px;
        color: #222;
    }

    .login__form button {
        width: 160px;
    }

    .login__form--inputs {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .login__form--image {
        display: flex;
        margin: 0;
    }

    .login__form--text-help {
        margin-top: 0;
    }

    .login__information {
        flex: 1;
    }

    .login__form--container {
        margin-top: auto;
        margin-bottom: auto;
        min-height: 235px;
    }

    .login__information--container {
        padding: 16px 40px;
        max-width: 1164px;
    }

    .login__information--text {
        font-size: 14px;
    }

    .login__information--end-desktop {
        display: block;
        text-align: center;
        font-size: 12px;
        margin-top: 16px;
    }

    .login__information--end-mobile {
        display: none;
    }

    .login__information--container--flex {
        display: flex;
        justify-content: space-between;
        gap: 100px;
    }

    .login__download--mobile {
        display: none;
    }

    .login__download {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px; /* separación QR ↔ contenido */
    }

    .login__download__QR {
        padding-top: 25px;
        display: block;
        max-width: 120px; /* tamaño QR */
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .login__download__content {
        display: flex;
        flex-direction: column;
        align-items: center; /* centra contenido horizontalmente */
        justify-content: center;
        text-align: center; /* centra el texto */
        max-width: 180px;
    }

    .login__download__text {
        margin: 0 0 10px 0; /* espacio debajo del texto */
        text-align: center; /* asegura que el texto esté centrado */
        word-wrap: break-word;
    }

    .login__download__buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center; /* centra los botones */
    }

    .login__download__buttons img {
        display: block;
        margin: 0 auto;
        width: 170px; /* mismo ancho para ambos */
        height: auto; /* mantiene proporción */
    }

    footer.footer {
        padding: 20px 40px;
        font-size: 12px;
        text-align: center;
        color: #fff;
        display: flex;
        justify-content: space-between;
        margin-top: auto;
        width: 100%;
    }

    .footer__mobile {
        display: none;
    }

    .footer__link {
        color: #fff;
        margin-bottom: 0;
    }

    .footer__copy {
        font-size: 12px;
    }
}

@media (min-width: 1200px) {
    main.login {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


    .login__form {
        padding: 24px 60px;
        border-radius: 0;
        width: 100%;
        color: #222;
        margin: 0;
        min-height: 235px;
    }

    .login__form--image {
        flex: 1;
    }

    .login__form--title span {
        font-size: 24px;
        color: #004e8e;
    }

    .login__form--text-help {
        font-size: 12px;
        line-height: 12px;
    }

    .login__form--image img {
        width: 100%;
        height: auto;
        max-width: 250px;
    }

    .login__information--container {
        margin: 0;
        padding: 16px 60px;
    }

    .login__information--container--flex {
        display: flex;
        justify-content: space-between;
        gap: 140px;
        margin-top: 0;
    }

    .login__information--title {
        font-size: 24px;
        line-height: 24px;
    }

    .login__information--text {
        font-size: 14px;
    }

    .login__download {
        gap: 0 4px;
    }

    .login__download__QR {
        width: 110px;
        height: auto;
    }

    .login__download__android {
        width: 160px;
        height: auto;
    }

    .login__download__text {
        font-size: 16px;
    }

    footer.footer {
        padding: 0 40px 10px;
    }

    .footer__link {
        font-size: 16px;
    }

    .footer__link span {
        font-size: 14px;
    }

    .footer__copy {
        font-size: 12px;
    }
}

@media (min-width: 1400px) {
    main.login {
        padding: 0 40px;
    }

    .login__form button {
        padding: 6px 20px;
        height: 48px;
        width: 200px;
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .input-form__field {
        width: 320px;
    }

    .login__form {
        border-radius: 0;
        width: 100%;
        color: #222;
        margin: 0;
        min-height: 270px;
        max-width: 1264px;
        gap: 0;
        padding: 24px 60px;
    }

    .login__form--title span {
        font-size: 36px;
        color: #004e8e;
    }

    .login__form--text-help {
        font-size: 16px;
        line-height: 18px;
    }

    .login__form--image img {
        max-width: 280px;
    }

    .login__information--container {
        margin: 0;
        max-width: 1264px;
        padding: 24px 60px;
    }

    .login__information--title {
        font-size: 32px;
        line-height: 32px;
    }

    .login__information--text {
        font-size: 18px;
    }

    .login__information span {
        margin-bottom: 8px;
    }

    .login__information--end-desktop {
        font-size: 16px;
        line-height: 16px;
    }

    .login__download {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px; /* separación QR ↔ contenido */
    }

    .login__download__QR {
        padding-top: 25px;
        display: block;
        max-width: 120px; /* tamaño QR */
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .login__download__content {
        display: flex;
        flex-direction: column;
        align-items: center; /* centra contenido horizontalmente */
        justify-content: center;
        text-align: center; /* centra el texto */
        max-width: 180px;
    }

    .login__download__text {
        margin: 0 0 10px 0; /* espacio debajo del texto */
        text-align: center; /* asegura que el texto esté centrado */
        word-wrap: break-word;
    }

    .login__download__buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center; /* centra los botones */
    }

    .login__download__buttons img {
        display: block;
        margin: 0 auto;
        width: 170px; /* mismo ancho para ambos */
        height: auto; /* mantiene proporción */
    }


    footer.footer {
        padding: 20px 40px;
    }

    .footer__link img {
        width: 14px;
        height: auto;
    }

    .footer__copy {
        font-size: 14px;
    }
}

.login__alert {
    display: flex;
    align-items: center;
    justify-content: center; /* centra todo el contenido */
    gap: 8px; /* pequeño espacio entre ícono, texto y X */
    padding: 10px 15px;
    border-radius: 6px;
    background-color: #f8d7da; /* rojo claro (fondo de alerta) */
    border: 1px solid #f5c6cb;
    color: #721c24; /* rojo oscuro (texto e íconos) */
    width: 100%;
    margin: 10px auto;
}

.login__alert--icon {
    font-size: 18px;
    color: #721c24;
}

.login__alert--text {
    font-size: 15px;
    font-weight: 500;
    color: #721c24;
}

.login__alert--close {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #721c24;
}

