﻿/* Horario */
.main {
    font-family: "Arial Narrow", Arial;
    font-stretch: condensed;
    width: 35%;
    text-align: center;
    border-radius: 5px;
    margin: 10% auto 0 auto;
    position: relative;
    background: #043578; /*#004469*/
}

.center {
    padding-top: 20px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.head {
    color: #fff;
    font-family: "Arial Narrow", Arial;
    font-stretch: condensed;
}

.btnC {
    border-color: #097EF6;
    background-color: #00368e;
    padding: 12px;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 10px;
}

    .btnC:hover {
        background-color: #043578
    }

.logLog {
    width: 90px;
    /*height: 100px;*/
    margin: 5px auto 7px;
    background-size: cover;
}

@media screen and (max-width: 500px) {
    .main {
        width: 90%;
    }
}

@media screen and (max-width: 650px) {
    .main {
        width: 65%;
    }
}

/* login */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial Narrow", Arial;
}

body {
    background-color: #E5ECF9;
}

.container {
    display: flex;
    width: 400px;
    height: 450px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
    margin: auto;
    margin-top: 110px;
    border-width: 0 0 0 5px;
    border-color: #004469;
    border-style: solid;
    border-radius: 5px;
    text-align: center;
}

.txt-1 {
    color: #fff;
    text-transform: capitalize;
    font-size: 20px;
    margin-bottom: 25px;
}

.txt-2 {
    color: #fff;
    font-size: 18px;
}

.form {
    padding: 50px;
    width: 100%;
    background-color: #fff;
}

    .form h2 {
        color: #071D49;
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form p {
        font-size: 16px;
        color: #9e9e9e;
        margin-bottom: 20px;
    }

.inputs {
    display: flex;
    flex-direction: column;
    padding-bottom: 5px;
}

.box {
    outline: none;
    border-color: #004469;
    border-width: 0 0 0 5px;
    border-style: solid;
    padding: 15px 25px;
    margin-bottom: 10px;
    background-color: #f0f1f1;
    font-weight: bold;
    font-size: 15px;
    border-radius: 5px;
    text-align:center;
}

    .box:hover {
        border-color: #021b5f;
    }

.lblMgs {
    color: #fc0000;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0 0 0;
    display: block;
}

.btn {
    background-color: #004469;
    padding: 12px;
    border: 0;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

    .btn:hover {
        color: #FFDB00;
        background: #071D49; /*#043578*/
    }

@media(max-width:990px) {
    .container {
        width: 355px;
        height: 460px;
        margin-top: 100px;
    }

    .form {
        width: 100%;
        padding: 30px;
    }

        .form h2 {
            margin-top: 10px;
        }
}

.divCargando {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    padding: 5px; /* Espacio alrededor */
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid #071D49; /* Color base verde */
    border-top-color: transparent; /* Superior transparente para efecto */
    border-bottom-color: transparent; /* Amarillo abajo */
    border-left-color: #071D49; /* Verde izquierda */
    border-right-color: #071D49; /* Verde derecha */
    animation: spin 1.5s linear infinite;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

/* ANIMACIÓN CORREGIDA - Sentido horario */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg); /* Una vuelta completa */
    }
}


.cssCheckBox label {
    padding-left: 5px;
}

.cssCheckBox {
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    cursor: pointer;
    font-family: "Arial Narrow", Arial;
    font-stretch: condensed;
    color: #004469;
    font-weight: bold;
    font-size: 16px;
    user-select: none;
    position: relative;
}

    /* Diseño del checkbox personalizado */
    .cssCheckBox .checkmark {
        position: relative;
        display: inline-block;
        width: 22px;
        height: 22px;
        background: #f0f1f1; /* Mismo fondo que tus inputs */
        border: 2px solid #047835; /* Borde verde como el tuyo */
        border-radius: 5px;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* Efecto hover */
    .cssCheckBox:hover .checkmark {
        background: #e0e0e0;
        border-color: #0055b2; /* Azul de hover */
        transform: scale(1.05);
    }

    /* Estado CHECKED */
    .cssCheckBox input:checked ~ .checkmark {
        background: #047835; /* Verde cuando está marcado */
        border-color: #047835;
    }

    /* Icono de check (✓) */
    .cssCheckBox .checkmark:after {
        content: "";
        position: absolute;
        display: none;
        left: 7px;
        top: 3px;
        width: 6px;
        height: 12px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    /* Mostrar el check cuando está marcado */
    .cssCheckBox input:checked ~ .checkmark:after {
        display: block;
    }

    /* Efecto focus para accesibilidad */
    .cssCheckBox input:focus ~ .checkmark {
        outline: 2px solid #097EF6;
        outline-offset: 2px;
    }

    /* Estado deshabilitado */
    .cssCheckBox input:disabled ~ .checkmark {
        opacity: 0.5;
        cursor: not-allowed;
    }


.password-wrapper {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    padding-right: 2.5em;
    caret-color: auto;
}

.toggle-eye {
    position: absolute;
    right: 0.8em;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #000243;
    pointer-events: auto;
}

    .toggle-eye:hover {
        color: #666;
    }