﻿
body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
}

.main-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-wrapper {
    width: 100%;
}

.login-card {
    width: 380px;
    max-width: 95%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

.logo-container {
    text-align: center;
    padding: 20px 0;
}

    .logo-container img {
        margin: 0 auto;
        display: block;
        transition: all 0.3s ease;
    }

        .logo-container img:hover {
            transform: scale(1.05);
        }

.form-control {
    border-radius: 5px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    padding: 12px 15px;
    height: auto;
}

    .form-control:focus {
        box-shadow: none;
        border-color: #6c757d;
        background-color: #fff;
    }

.input-group-append .btn {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    color: #555;
}

.input-icon {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #6c757d !important;
    z-index: 100 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
}

.input-with-icon {
    padding-left: 40px !important;
}

.btn-login {
    background: linear-gradient(135deg, #333 0%, #6c757d 100%);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .btn-login:hover {
        background: linear-gradient(135deg, #6c757d 0%, #333 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

.btn-forget {
    color: #6c757d;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    .btn-forget:hover {
        background-color: #f8f9fa;
        color: #333;
    }

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ripple div {
        position: absolute;
        border: 4px solid #333;
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -0.5s;
        }

@@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

@@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.text-brand {
    color: #333;
    font-weight: 700;
    letter-spacing: 1px;
}

#loadingSistema {
    display: none !important;
    margin: 10px auto;
}

/* Arreglo para el botón de ver contraseña */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-append {
    display: flex;
    height: auto;
}

    .input-group-append .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0 15px;
    }

.position-relative.w-100 {
    flex: 1;
}

.position-relative {
    position: relative !important;
}

