﻿/* login.css – TXT Transportes y logística */

/* Reset y fuente */
html, body {
    font-family: "Urbane", sans-serif !important;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

body {
    /* Primer plano: capa negra al 75% de opacidad */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    /* Capa de atrás: tu imagen */
    url('/Content/background-login-text.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Placeholder uniforme */
::placeholder {
    color: #6c757d;
    opacity: 1;
}

/* Contenedor principal */
.login-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: #ffffff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 420px;
}

/* Logo */
.logo {
    width: 200px; /* ancho del “viewport” */
    height: 100px;
    object-fit: cover;
    display: block;
    margin: 0 auto 30px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}


/* Inputs */
.input-container {
    position: relative;
}

    .input-container .form-control {
        width: 100%;
        height: 52px;
        padding: 10px;
        font-size: 15px;
        border: 1px solid #509DCC; /* azul corporativo */
        border-radius: 10px;
        text-align: center;
    }

    .input-container .toggle-password {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

/* Checkbox y enlaces de recordatorio */
.remember-forgot {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 500;
    line-height: 49px;
    color: #141B4D;
}

    .remember-forgot input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        padding: 0;
    }

    .remember-forgot a,
    .register-link a {
        color: #509DCC; /* azul corporativo */
        text-decoration: none;
    }

        .remember-forgot a:hover,
        .register-link a:hover {
            text-decoration: underline;
            text-decoration-color: #509DCC;
        }

/* Botón Login */
.btn-login {
    height: 50px;
    padding: 0 25px;
    background: #509DCC; /* azul TXT */
    color: #ffffff;
    border: none;
    border-radius: 34px;
    font-size: 14px;
    cursor: pointer;
}

    .btn-login:hover {
        background: #336F9E; /* 15% más oscuro */
    }

    .btn-login:disabled {
        background-color: #336F9E !important;
        cursor: not-allowed;
    }

/* Link de registro */
.register-link {
    font-size: 13px;
    margin-top: 10px;
    margin-bottom: 0 !important;
}

/* Selector de idioma */
.language-switcher {
    position: fixed;
    top: 15px;
    right: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    z-index: 1000;
}

    .language-switcher a {
        color: white; /* azul corporativo */
        text-decoration: none;
        margin: 0 8px;
    }

        .language-switcher a:hover {
            text-decoration: underline;
        }

/* Footer */
footer {
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    line-height: 49px;
    opacity: 0.8; /* mayor legibilidad */
    padding: 15px 0;
}

/* Select (idiomas) */
select {
    position: relative;
    top: 68px;
    left: 617px;
    width: 133px;
    height: 31px;
    background: #FFFFFF;
    border: 1px solid #509DCC;
    margin: 5px;
}

/* Loader */
.loader-container {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 27, 77, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 6px solid #509DCC; /* unifica */
    border-top: 6px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensajes de validación */
.success-message {
    display: none;
    background-color: #d4edda;
    color: #d9534f;
    padding: 8px;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}

.error-message {
    display: none;
    background: rgba(255, 0, 0, 0.1);
    color: #d9534f;
    padding: 8px;
    border-radius: 5px;
    font-size: 13px;
    margin-top: 5px;
    text-align: center;
    width: 100%;
}

/* Modal de recuperación de contraseña */
.modal-content {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.modal-header {
    background-color: #509DCC; /* azul corporativo */
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    padding: 15px;
}

.modal-title i {
    margin-right: 10px;
    color: #ffffff; /* mayor contraste */
}

.modal-body .form-control {
    border: 1px solid #509DCC;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
}

.reset-message {
    display: none;
    margin-top: 10px;
    color: #28a745;
    font-weight: bold;
}

.btn-primary {
    background-color: #509DCC;
    border: none;
}

    .btn-primary:hover {
        background-color: #336F9E;
    }

.btn-secondary {
    background-color: #6c757d;
}

/* Responsive */
@media (max-width: 992px) {
    .removeChild {
        display: none;
    }

    .resizeTd {
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 800px) {
    input[type=text],
    input[type=password],
    input[type=email] {
        width: 99%;
        padding: 0;
        height: 6vh;
    }
}

@media (max-width: 600px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        font-size: 12px;
    }

    .login-box {
        width: 90%;
        padding: 40px;
    }
}

/* Formulario */
#frmLogin {
    text-align: center;
    margin-bottom: 0 !important;
}
