@import "../fonts/font-santander.css";

body {
    padding: 0;
    margin: 0;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: SantanderMicroText, Arial, sans-serif;
}

.page {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

h1 {
    font-family: SantanderMicroText, Helvetica, Arial !important;
    font-weight: 200 !important;
    font-size: 22px;
    color: #767676;
    margin-bottom: 30px;
}

.white-box {
    background: #ffffff;
    position: relative;
    padding: 10px 40px;
    font-family: SantanderMicroText, Arial, Tahoma, Verdana;
    font-weight: 200 !important;
    box-sizing: border-box;
}

.login-form {
    margin: 44px 0 0 0;
}

.inputContainer {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.inputContainer label {
    position: absolute;
    top: 20px;
    left: 10px;
    color: #868687;
    transition: all 0.3s ease;
    pointer-events: none;
}

.inputContainer input {
    width: 100%;
    padding: 18px 0 0 10px;
    border: 1px solid #e6f2f5;
    border-bottom: 1px solid #5c9fbb;
    border-radius: 5px 5px 0 0;
    background: #f5f9fb;
    font-size: 16px;
    outline: none;
    height: 50px;
    box-sizing: border-box;
}

.inputContainer input:focus {
    border-bottom: 1px solid #cc0000;
}

.inputContainer input:focus+label,
.inputContainer input:valid+label {
    top: 6px;
    color: #cc0000;
    font-size: 12px;
}

.inputContainer input:focus+label {
    color: #cc0000;
    font-size: 12px;
}

.inputContainer input:valid+label {
    color: #868687;
    font-size: 12px;
}

.input-error {
    border-bottom: 1px solid #cc0000 !important;
}

.label-error {
    color: #cc0000 !important;
}

.inputWrapper p {
    color: #767676;
}

.btn-submit {
    border: 1px solid #0080e9;
    border-radius: 2.5rem;
    font-size: 14px;
    font-weight: bold;
    padding: 15px;
    cursor: pointer;
    background-color: #ec0000;
    border-color: #ec0000;
    transition: background-color 0.2s;
    color: #fff;
    width: 100%;
    min-width: 360px;
}

.btn-submit:disabled {
    cursor: no-drop;
    background-color: #f2f2f2;
    border-color: #f2f2f2;
    transition: background-color 0.2s;
    color: #c2c2c2;
}

.btn-submit-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0080e9;
    border-radius: 2.5rem;
    font-size: 14px;
    font-weight: bold;
    padding: 15px;
    cursor: no-drop;
    background-color: #ec0000;
    border-color: #ec0000;
    transition: background-color 0.2s;
    color: #fff;
    width: 100%;
    min-width: 360px;
}

.loading-icon {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ec0000;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.solicitar-clave {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 31px 0 0 0 !important;
    color: #127277;
    text-align: center;
    padding-bottom: 10px;

    p {
        margin: 0;
    }

    .link-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-weight: bold;
        padding-bottom: 4px;
    }
}

.link-icon {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.link-icon::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: currentColor;
    transition: width 0.3s ease, left 0.3s ease;
}

.link-icon:hover::after {
    width: 100%;
    left: 0;
}

.lower-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.warning {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 0 15px;
    border: 1px solid #efefef;
    border-radius: 10px;
    max-width: 600px;
    margin-top: 32px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    height: 288px;

    .text {
        flex: 1;
        margin-right: 0px;
    }

    img {
        max-width: 320px;
        height: 332px;
        object-fit: cover;
        transform: translate(7%, 7%);
        margin-left: -30px;
    }

    .title {
        font-size: 28px;
        font-weight: bold;
        color: #ec0000;
        margin: 0 0 10px 0;
    }

    .subtitle {
        font-size: 16px;
        color: black;
        margin-bottom: 10px;
        line-height: 1.5;
    }
}

.division {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 585px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 42px;
}

.footerLegal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: justify;
    font-size: 12px;
    color: #727272;
    width: 100%;
    max-width: 585px;

    .legal {
        margin-top: 0px;
        font-family: SantanderMicroText, Arial, sans-serif;
    }
}

.login-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-title-down {
    border-top: 1px solid;
    display: inline-block;
    line-height: 20px;
    margin-top: 0px;
    padding-top: 10px;
    font-size: 18px;
    color: #ec0000;
}

p {
    em {
        color: #ec0000 !important;
        font-size: 36px;
    }

    .title-1 {
        font-weight: bold;
        font-size: 28px;
        letter-spacing: -1px;
    }

    .title-2 {
        font-size: 28px;
        letter-spacing: -1px;
    }
}

.close_button {
    cursor: pointer;
}

.error {
    color: #ec0000 !important;
    font-size: 12px;
    margin-top: 2px;
    margin-left: 12px;
    display: none;
}

.errorPanel {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    background-color: #222;
    color: white;
    border-radius: 10px;
    margin: 0 auto;
    margin-top: 36px;
    padding: 20px;
    gap: 15px;
    transition: opacity 0.5s ease, height 0.5s ease;

    h3,
    p {
        font-size: 12px;
        margin: 0;
        text-align: left;
    }

    img {
        margin-top: 0px;
        align-self: center;
    }

    p {
        line-height: 1.5;
        flex: none;
    }

    a {
        font-size: 12px;
        padding: 5px 10px;
        font-weight: bold;
        cursor: pointer;
        text-align: right;
    }
}

@media (max-width: 540px) {
    body {
        padding: 0;
        margin: 0;
        font-size: 14px;
    }

    .white-box {
        padding: 15px;
    }

    .inputWrapper {
        width: 100%;
    }

    .btn-submit {
        width: 100%;
        min-width: auto;
    }

    .warning {
        padding: 20px 0 0 15px;
        max-width: 100%;
        height: 260px;

        img {
            max-width: 115%;
            height: 65%;
            object-fit: cover;
            transform: translate(17%, 48%);
            margin-left: -37%;
        }

        .title {
            font-size: 26px;
        }

        .subtitle {
            font-size: 15px;
            max-width: 60%;
        }
    }
}

@media (min-width: 541px) and (max-width: 600px) {

    .warning {
        padding: 20px 0 0 15px;
        max-width: 100%;
        height: 260px;

        img {
            max-width: 115%;
            height: 115%;
            object-fit: cover;
            transform: translate(17%, 7%);
            margin-left: -27%;
        }

        .title {
            font-size: 26px;
        }

        .subtitle {
            font-size: 15px;
            max-width: 72%;
        }
    }

    .division {
        width: 95%;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .lower-section {
        padding: 0px;
    }

    .warning {
        border-radius: 10px;
        width: 95%;
        max-width: 100%;
        height: 232px;

        img {
            max-width: 115%;
            height: 115%;
            object-fit: cover;
            transform: translate(7%, 7%);
            margin-left: -55px;
        }

        .title {
            font-size: 26px;
        }

        .subtitle {
            font-size: 14px;
            max-width: 90%;
        }
    }

    .division {
        width: 95%;
    }

    .footerLegal {
        font-size: 11px;
        width: 95%;
    }
}