
/*=====================================================
NOVATRACK
LOGIN
======================================================*/

/*=====================================================
RESET
======================================================*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    background: #C3C3C3;
    overflow: hidden;
    font-family: 'ITC Eras', sans-serif;
}


/*=====================================================
FONDO GENERAL
======================================================*/

.background {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: -2;
}

.background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #292827;
}


/*=====================================================
CONTENEDOR PRINCIPAL
======================================================*/

.login-container {
    width: 90%;
    max-width: 1250px;
    height: 720px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.80);

    animation: containerIn 0.8s ease;
}


/*=====================================================
LOGO CABECERA RESPONSIVE
======================================================*/

.mobile-header {
    display: none;
}


/*=====================================================
PANEL IZQUIERDO
======================================================*/

.left-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 40px;
    background: url("../img/Background_Login_02.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    animation: leftIn 0.8s ease;
}


/*=====================================================
CAPA DE CONTRASTE
======================================================*/

.left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
}


/*=====================================================
CONTENIDO SOBRE LA IMAGEN
======================================================*/

.logo-box,
.icon-box {
    position: relative;
    z-index: 1;
}


/*=====================================================
LOGO
======================================================*/

.logo-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-sizing: border-box;
    animation: fadeUp 0.8s ease;
}

.logo-box img {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.logo-box p {
    width: 100%;
    max-width: 350px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    padding-left: 70px;
    line-height: 1;
}


/*=====================================================
ICONOS INFERIORES
======================================================*/

.icon-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    animation: fadeUp 0.8s ease;
}

.icon-info1,
.icon-info2,
.icon-info3,
.icon-info4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    font-size: 30px;
}

.icon-info1 i,
.icon-info2 i,
.icon-info3 i,
.icon-info4 i {
    padding: 20px 20px;
}


/*=====================================================
TEXTO ICONOS
======================================================*/

.icon-info1 span,
.icon-info2 span,
.icon-info3 span,
.icon-info4 span {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}


/*=====================================================
COLORES DE ICONOS
======================================================*/

.icon-info1 i {
    color: #FFFF00;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
}

.icon-info2 i {
    color: #00C800;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
}

.icon-info3 i {
    color: #FF6400;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
}

.icon-info4 i {
    color: #6400FF;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
}


/*=====================================================
PANEL DERECHO
======================================================*/

.right-panel {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000000;
    animation: rightIn 0.8s ease;
}


/*=====================================================
LOGIN BOX
======================================================*/

.login-box {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.8s ease;
}


/*=====================================================
TITULO
======================================================*/

.login-box h2 {
    color: #C3C3C3;
    font-size: 50px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

.login-box p {
    color: #B3B3B3;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 40px;
}


/*=====================================================
INPUTS
======================================================*/

.input-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 45px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.input-box input {
    width: 100%;
    height: 45px;
    box-sizing: border-box;
    padding-left: 55px;
    padding-right: 55px;
    border: 1px solid #B3B3B3;
    outline: none;
    border-radius: 14px;
    background: #000000;
    color: #C3C3C3;
    font-family: 'ITC Eras', sans-serif;
    font-size: 16px;
    transition: all 0.35s ease;
}

.input-box input::placeholder {
    color: #B3B3B3;
}

.input-box input:focus {
    border-color: #FF0000;
    background: #000000;
    box-shadow:
        0 0 18px rgba(255, 0, 0, 0.20);
}


/*=====================================================
ICONO IZQUIERDO
======================================================*/

.input-box .icon-left {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF0000;
    font-size: 18px;
    pointer-events: none;
}


/*=====================================================
PASSWORD
======================================================*/

.password-box {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #B3B3B3;
    cursor: pointer;
    font-size: 18px;
    transition: 0.30s;
}

.toggle-password:hover {
    color: #FF0000;
}


/*=====================================================
BOTÓN LOGIN
======================================================*/

.btn-login {
    width: 100%;
    height: 45px;
    margin-top: 15px;
    border: none;
    border-radius: 14px;
    background: #FF0000;
    color: #FFFFFF;
    font-family: 'ITC Eras', sans-serif;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s ease;
}

.btn-login i {
    margin-right: 8px;
}

.btn-login:hover {
    background: #B3B3B3;
    color: #000000;
    transform: translateY(-2px);
    box-shadow:
        0 15px 25px rgba(255, 0, 0, 0.25);
}

.btn-login:active {
    transform: translateY(0);
}


/*=====================================================
LINK RECUPERAR CONTRASEÑA
======================================================*/

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 25px;
    color: #B3B3B3;
    font-size: 14px;
    text-decoration: none;
    transition: 0.30s;
}

.forgot-password:hover {
    color: #FF0000;
}


/*=====================================================
SEPARADOR
======================================================*/

.separator {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #B3B3B3;
    font-size: 14px;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #B3B3B3;
    opacity: 0.35;
}

.separator span {
    font-weight: 600;
    margin: 0 18px;
}


/*=====================================================
SOPORTE / REDES
======================================================*/

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #FF0000;
    color: #FFFFFF;
    transition: all 0.35s ease;
}

.social a:hover {
    background: #C3C3C3;
    color: #FF0000;
    transform: translateY(-4px);
    box-shadow:
    0 10px 20px rgba(255, 0, 0, 0.25);
}

.social i {
    font-size: 20px;
}


/*=====================================================
FOOTER LOGIN
======================================================*/

.login-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    color: #B3B3B3;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.login-footer-separator {
    color: #B3B3B3;
}

.login-footer a {
    color: #FF0000;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.login-footer a:hover {
    color: #FF3333;
    opacity: 0.85;
}


/*=====================================================
LOADER
======================================================*/

#loader {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
}

.spinner {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: 5px solid #B3B3B3;
    border-top-color: #FF0000;
    animation: spin 1s linear infinite;
}


/*=====================================================
ANIMACIÓN SPINNER
======================================================*/

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


/*=====================================================
ANIMACIÓN PANEL IZQUIERDO
======================================================*/

@keyframes leftIn {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/*=====================================================
ANIMACIÓN PANEL DERECHO
======================================================*/

@keyframes rightIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/*=====================================================
ANIMACIÓN FADE UP
======================================================*/

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*=====================================================
ANIMACIÓN CONTENEDOR
======================================================*/

@keyframes containerIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/*=====================================================
SCROLLBAR
======================================================*/

/* Chrome, Edge, Safari */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #FF0000;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    background: #000000;
}


/* Firefox / Mozilla */

html {
    scrollbar-width: thin;
    scrollbar-color: #FF0000 #000000;
}


/*=====================================================
TABLET / MÓVIL
992px
======================================================*/

@media (max-width: 992px) {

    html {
        width: 100%;
        min-height: 100%;
    }

    body {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }


    /*--------------------------------------------------
      FONDO GENERAL
    --------------------------------------------------*/

    .background {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: #000000;
    }

    .background::after {
        background: rgba(0, 0, 0, 0.30);
    }


    /*--------------------------------------------------
      CONTENEDOR
    --------------------------------------------------*/

    .login-container {
        position: relative;
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background:
            linear-gradient(
                rgba(0, 0, 0, 0.45),
                rgba(0, 0, 0, 0.45)
            ),
            url("../img/Background_Login_02.png");

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 0;
    }


    /*--------------------------------------------------
      CABECERA MÓVIL
    --------------------------------------------------*/

    .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        box-sizing: border-box;
        z-index: 9999;
        pointer-events: none;
        background: rgba(0, 0, 0, 0.50);
    }


    /*--------------------------------------------------
      LOGO MÓVIL
    --------------------------------------------------*/

    .mobile-header img {
        display: block;
        width: 250px;
        max-width: 80%;
        height: auto;
        object-fit: contain;
        padding-left: 10px;
        margin-bottom: 5px;
    }


    /*--------------------------------------------------
      TEXTO DEL LOGO
    --------------------------------------------------*/

    .mobile-header p {
        width: 100%;
        max-width: 600px;
        color: #FFFFFF;
        font-size: 10px;
        font-weight: 500;
        line-height: 1;
        text-align: left;
        padding-left: 60px;
    }


    /*--------------------------------------------------
      PANEL IZQUIERDO
    --------------------------------------------------*/

    .left-panel {
        display: none;
    }


    /*--------------------------------------------------
      PANEL DERECHO
    --------------------------------------------------*/

    .right-panel {
        position: relative;
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        height: 100vh;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 100px 25px 40px;
        overflow-x: hidden;
        overflow-y: auto;
        background: transparent;
    }


    /*--------------------------------------------------
      LOGIN BOX
    --------------------------------------------------*/

    .login-box {
        position: relative;
        z-index: 10;
        width: 100%;
        max-width: 420px;
        min-width: 0;
        box-sizing: border-box;
        margin: 0 auto;
    }


    /*--------------------------------------------------
      TÍTULO
    --------------------------------------------------*/

    .login-box h2 {
        font-size: 45px;
    }

    .login-box p {
        width: 100%;
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 30px;
    }


    /*--------------------------------------------------
      INPUTS
    --------------------------------------------------*/

    .input-box {
        position: relative;
        width: 100% !important;
        max-width: 420px;
        height: 55px;
        margin-bottom: 15px;
        box-sizing: border-box;
    }

    .input-box input {
        width: 100%;
        height: 55px;
        box-sizing: border-box;
        padding-left: 55px;
        padding-right: 55px;
        border: 1px solid #B3B3B3;
        outline: none;
        border-radius: 14px;
        background: #000000;
        color: #C3C3C3;
        font-family: 'ITC Eras', sans-serif;
        font-size: 16px;
        transition: all 0.35s ease;
    }

    .input-box input::placeholder {
        color: #B3B3B3;
    }

    .input-box input:focus {
        border-color: #FF0000;
        background: #000000;
        box-shadow:
            0 0 18px rgba(255, 0, 0, 0.20);
    }


    /*--------------------------------------------------
      ICONO IZQUIERDO
    --------------------------------------------------*/

    .input-box .icon-left {
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #FF0000;
        font-size: 18px;
        pointer-events: none;
    }


    /*--------------------------------------------------
      OJO CONTRASEÑA
    --------------------------------------------------*/

    .toggle-password {
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: #B3B3B3;
        cursor: pointer;
        font-size: 18px;
        transition: 0.30s;
    }

    .toggle-password:hover {
        color: #FF0000;
    }


    /*--------------------------------------------------
      BOTÓN LOGIN
    --------------------------------------------------*/

    .btn-login {
        width: 100%;
        height: 55px;
        margin-top: 15px;
        border-radius: 14px;
        font-family: 'ITC Eras', sans-serif;
        font-size: 17px;
    }


    /*--------------------------------------------------
      OLVIDÓ CONTRASEÑA
    --------------------------------------------------*/

    .forgot {
        display: block;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 35px;
        font-size: 16px;
        text-align: center;
    }


    /*--------------------------------------------------
      SEPARADOR
    --------------------------------------------------*/

    .separator {
        width: 100%;
        margin: 25px 0 25px;
    }

    .separator span {
        font-size: 14px;
        margin: 0 15px;
    }


    /*--------------------------------------------------
      SOPORTE
    --------------------------------------------------*/

    .social {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 25px;
        margin-bottom: 35px;
    }

    .social a {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }


    /*--------------------------------------------------
      FOOTER LOGIN
    --------------------------------------------------*/

    .login-footer {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
        color: #B3B3B3;
        font-size: 14px;
        font-weight: 400;
        text-align: center;
    }

    .login-footer-separator {
        display: none;
    }
}


/*=====================================================
MÓVIL PEQUEÑO
600px
======================================================*/

@media (max-width: 600px) {

    .right-panel {
        padding: 95px 20px 30px;
    }

    .login-box {
        max-width: 100%;
    }

    .login-box h2 {
        font-size: 38px;
    }

    .login-box p {
        font-size: 16px;
    }

    .input-box,
    .input-box input {
        height: 52px;
    }

    .input-box input {
        font-size: 15px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .input-box .icon-left {
        left: 16px;
        font-size: 17px;
    }

    .toggle-password {
        right: 16px;
        font-size: 17px;
    }

    .btn-login {
        height: 52px;
        font-size: 16px;
    }

    .forgot {
        font-size: 15px;
    }

    .social {
        gap: 20px;
    }

    .social a {
        width: 45px;
        height: 45px;
    }

    .mobile-header {
        height: 75px;
    }

    .mobile-header img {
        width: 220px;
    }

    .mobile-header p {
        font-size: 9px;
        padding-left: 50px;
    }
}