﻿body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: sans-serif;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.hero {
    min-height: 100vh;
    background-image: url('/images/fondoLogin.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.45);
    }

div {
    box-sizing: border-box;
}

/* main box */
.main-box {
    position: relative;
    z-index: 1;
}

.sp {
    position: absolute;
    transition: 0.5s;
}

.sp-t {
    top: 0;
    right: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient( to left, transparent, #FFD600, #E53935 );
    animation: anim2 2s linear infinite;
    transform: translateY(-300%);
    animation-delay: 0.8s;
}

.sp-r {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 200px;
    background: linear-gradient( to top, transparent, #FFD600, #E53935 );
    animation: anim1 2s linear infinite;
}

.sp-b {
    right: 0;
    bottom: 0;
    width: 200px;
    height: 2px;
    background: linear-gradient( to left, transparent, #FFD600, #E53935 );
    animation: anim2 2s linear infinite;
}

.sp-l {
    left: 0;
    top: 0;
    width: 2px;
    height: 200px;
    background: linear-gradient( to top, transparent, #FFD600, #E53935 );
    animation: anim1 2s linear infinite;
    animation-delay: 1s;
    transform: translateX(-300%);
}

@keyframes anim1 {
    0% {
        transform: translateY(300%);
    }

    100% {
        transform: translateY(-300%);
    }
}

@keyframes anim2 {
    0% {
        transform: translateX(300%);
    }

    100% {
        transform: translateX(-300%);
    }
}
/* main box end */

.form-box {
    width: 420px;
    height: 580px;
    position: relative;
    background: rgba(10, 10, 10, 0.42);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255,214,0,.18);
    overflow: hidden;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px rgba(229,57,53,.18), 0 0 45px rgba(255,214,0,.08), 0 20px 50px rgba(0,0,0,.55);
}
    .form-box::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 135deg, rgba(255,214,0,.04), rgba(229,57,53,.03) );
        pointer-events: none;
    }

#after {
    width: 50%;
    height: 100%;
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    background: #2d2e30;
    z-index: -1;
    transition: 0.5s;
}

.button-box {
    width: 150px;
    margin: 35px auto 30px auto;
    position: relative;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    animation: animBTN 5s linear infinite;
}

@keyframes animBTN {
    0% {
        box-shadow: 0 0 10px 9px rgba(3, 169, 244, 0.3);
    }

    33% {
        box-shadow: 0 0 10px 9px rgba(244, 65, 165, 0.3);
    }

    66.9% {
        box-shadow: 0 0 10px 9px rgba(255, 235, 59, 0.3);
    }

    100% {
        box-shadow: 0 0 10px 9px rgba(3, 169, 244, 0.3);
    }
}

.toggle-btn {
    padding: 10px 30px;
    cursor: pointer;
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: bold;
    color: rgb(234, 234, 235);
    outline: none;
    position: relative;
    transition: 0.5s;
}

#btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 100%;
    background: linear-gradient(to left, #57AAB4, #57AAB4);
    border-radius: 30px;
    transition: 0.5s;
}

.social-icons {
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.icon-link {
    display: flex;
    background: transparent;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    border-radius: 50%;
    margin: 0px 10px;
    box-shadow: 6px 6px 10px -1px rgba(234, 234, 235, 0.1), -6px -6px 10px -1px rgba(37, 37, 37, 0.7);
    border: 1px solid rgba(234, 234, 235, 0.09);
    transition: transform 0.5s;
}

.cont-icon {
    color: #57AAB4;
    font-size: 28px;
    transition: transform 0.5s;
}

.icon-link:hover {
    box-shadow: inset 4px 4px 6px -1px rgba(234, 234, 235, 0.2), inset 4px 4px 6px -1px rgba(37, 37, 37, 0.7), 0 0 5px #57AAB4, 0 0 25px #57AAB4, 0 0 50px #57AAB4, 0 0 100px #03e9f4;
    transform: translateY(2px);
}

    .icon-link:hover .cont-icon {
        transform: scale(0.95);
    }

    .icon-link:hover .fa-facebook,
    .icon-link:hover .fa-instagram,
    .icon-link:hover .fa-github {
        color: #57AAB4;
    }

/* logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
    margin-top: 24px;
}

    .logo-container img {
        object-fit: contain;
        display: block;
    }

/* content area */
.input-group {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    transition: 0.5s;
    box-sizing: border-box;
}

    .input-group form {
        width: 100%;
        margin: 0;
        text-align: center;
    }

/* fields */
.input-field {
    width: 100%;
    padding: 12px 8px;
    margin: 10px 0;
    border-top: 0;
    border-left: 2px solid #FFD600;
    border-right: 0;
    border-bottom: 2px solid #E53935;
    outline: none;
    background: transparent;
    color: rgb(234, 234, 235);
    font-size: 16px;
    transition: 0.5s;
    box-sizing: border-box;
}

    .input-field:focus {
        border-left: 2px solid transparent;
        border-bottom: 2px solid transparent;
        animation: animINP 5s linear infinite, animBTN 5s linear infinite;
    }

    .input-field::placeholder {
        color: rgba(234, 234, 235, 0.55);
    }

/* button */
.submit-btn {
    width: 85%;
    max-width: 290px;
    padding: 12px 30px;
    cursor: pointer;
    display: block;
    margin: 30px auto 0 auto;
    background: linear-gradient( 135deg, #E53935, #C62828 );
    border: 1px solid rgba(255,214,0,.25);
    outline: none;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: .35s;
    box-shadow: 0 0 12px rgba(229,57,53,.35);
}
    .submit-btn:hover {
        transform: translateY(-2px);
        background: linear-gradient( 135deg, #FFD600, #F9A825 );
        color: #111;
        box-shadow: 0 0 10px rgba(255,214,0,.5), 0 0 25px rgba(255,214,0,.35);
    }

.span {
    margin: 20px 0;
    color: rgb(234, 234, 235);
    font-size: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.check-box {
    margin: 0 10px;
    padding: 0;
}

#login {
    left: 0px;
}

#register {
    left: 500px;
}

@keyframes a {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 400%;
    }
}

.input-field select,
select.input-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    color: rgb(234, 234, 235);
    font-size: 16px;
    border-top: 0;
    border-left: 2px solid #57AAB4;
    border-right: 0;
    border-bottom: 2px solid #57AAB4;
    padding: 12px 8px;
    margin: 0;
    outline: none;
    width: 100%;
    transition: 0.5s;
    box-sizing: border-box;
}

    select.input-field:focus {
        border-left: 2px solid transparent;
        border-bottom: 2px solid transparent;
        animation: animINP 5s linear infinite, animBTN 5s linear infinite;
    }

    select.input-field option {
        background-color: #252525;
        color: rgb(234, 234, 235);
    }

/* welcome */
.welcome-box {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 22px;
    text-align: center;
    padding: 6px 0;
}

.empresa-bienvenida {
    color: #57c7ff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(87, 199, 255, 0.25);
    line-height: 1.35;
}

    .empresa-bienvenida span {
        color: #2fb8ff;
        font-weight: 800;
    }

.usuario-info {
    color: #d9edf7;
    font-size: 15px;
    line-height: 1.9;
    margin-top: 10px;
}

/* sucursal */
.sucursal-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 22px;
}

.sucursal-label {
    color: #57c7ff;
    font-weight: 600;
    margin: 0;
    font-size: 15px;
}

.sucursal-select {
    width: 100%;
    flex: none;
    margin-bottom: 0 !important;
}

.btn-entrar {
    margin-top: 10px;
}

/* responsive */
@media (max-width: 520px) {
    .main-box {
        width: 92%;
        max-width: 420px;
        height: 580px;
        margin: 5% auto;
    }

    .form-box {
        width: calc(100% - 6px);
        height: calc(100% - 6px);
    }

    .input-group {
        max-width: 84%;
    }
}
