﻿.container-fluid {
    padding: 0 !important;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(240deg, #405189 50%, #f3f3f9);
    position: relative;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Content/Images/cover-pattern.png');
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none; /* Permite hacer clic a través de la capa */
}

.login-wrapper {
    position: relative;
    z-index: 2;
}

.login-wrapper {
    display: flex;
    width: 1000px;
    max-width: 90%;
    height: 650px;
    max-height: 90vh;
    box-shadow: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    border-radius: 5px;
    overflow: hidden;
    background: white;
}

.panel-imagen {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-width: 0;
    position: relative;
}

    .panel-imagen .nombreTenant {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        text-align: center;
        color: white;
        font-size: 14px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
    }

.panel-account {
    flex: 1;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    min-width: 0;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.header-login-container {
    width: 100%;
    margin-bottom: 40px;
}
.header-login-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}


.logo-tenant {
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 12px; 
}

.header-login {
    text-align: left;
}

    .header-login h4 {
        color: #333;
        font-size: 24px;
        font-weight: 600;
        margin: 0 0 8px 0;
        line-height: 1.3;
    }

    .header-login h5 {
        color: #666;
        font-size: 16px;
        font-weight: 400;
        margin: 0;
        line-height: 1.4;
    }

/* Versión con logo centrado y texto también centrado */
.header-login-container.centered {
    text-align: center;
}

    .header-login-container.centered .header-login {
        text-align: center;
    }

/* Versión más compacta para móviles */
@media (max-width: 768px) {
    .header-login-container {
        margin-bottom: 30px;
    }

    .logo-tenant {
        max-width: 140px;
        max-height: 80px;
    }

    .header-login h4 {
        font-size: 22px;
    }

    .header-login h5 {
        font-size: 15px;
    }
}

/* Versión para móviles muy pequeños */
@media (max-width: 480px) {
    .header-login-container {
        margin-bottom: 25px;
    }

    .logo-tenant {
        max-width: 120px;
        max-height: 70px;
    }

    .header-login h4 {
        font-size: 20px;
    }

    .header-login h5 {
        font-size: 14px;
    }
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    max-width: 100%;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .form-control:focus {
        outline: none;
        border-color: #a282ec;
        background: white;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

.remember-me {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

    .remember-me input[type="checkbox"] {
        margin-right: 10px;
        width: 18px;
        height: 18px;
    }

    .remember-me label {
        margin: 0;
        color: #666;
        font-size: 14px;
    }

.btn-login {
    padding: 10px;
    transition: all 0.3s ease;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 7px 14px rgba(0, 123, 255, 0.25);
        background: linear-gradient(to right, #0056b3, #003d7a);
    }

    .btn-login i {
        margin-right: 8px;
    }

.login-links {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.forgot-password, .register-link {
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

    .forgot-password:hover, .register-link:hover {
        color: #0056b3;
        text-decoration: underline;
    }

.register-text {
    color: #666;
   
}

.validation-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container > * {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .login-wrapper {
        width: 95%;
        height: auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        margin: 20px;
    }

    .panel-imagen {
        height: 250px;
        width: 100%;
        flex: none;
    }

    .panel-account {
        padding: 40px 30px;
        width: 100%;
    }

    .form-container {
        max-width: 100%;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .login-wrapper {
        margin: 10px;
        border-radius: 10px;
    }

    .panel-account {
        padding: 30px 20px;
    }

    .header-login h1 {
        font-size: 24px;
    }

    .btn-login {
        padding: 14px;
    }
}
