/* MJCLEAN Webmail - Personalizacion */

.task-login {
    background: #f4f7fb;
}

.task-login #layout {
    background: transparent;
}

.task-login #layout-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 30px 20px;
    box-sizing: border-box;
}

.task-login #logo {
    position: static;
    top: auto;
    max-width: 240px;
    max-height: 100px;
    margin: 0 auto 30px;
}

.task-login #login-form {
    width: 100%;
    max-width: 420px;
    background: #fff;
    padding: 38px 40px 30px;
    border-radius: 18px;
    box-shadow: 0 15px 45px rgba(0, 50, 100, .12);
    border: 1px solid rgba(0, 80, 160, .08);
}

.task-login #login-form::before {
    content: "MJCLEAN Webmail";
    display: block;
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    color: #075da8;
    text-align: center;
}

.task-login .form-control {
    min-height: 46px;
    border-radius: 9px;
}

.task-login .btn-primary {
    min-height: 48px;
    border-radius: 9px;
    font-weight: 600;
    background: #075da8;
    border-color: #075da8;
}

.task-login .btn-primary:hover,
.task-login .btn-primary:focus {
    background: #064d8a;
    border-color: #064d8a;
}

.task-login #login-footer {
    margin-top: 24px;
    color: #7a8793;
    font-size: 12px;
}

@media (max-width: 575px) {
    .task-login #layout-content {
        padding: 20px 16px;
    }

    .task-login #login-form {
        padding: 30px 22px 24px;
        border-radius: 14px;
    }

    .task-login #logo {
        max-width: 190px;
        margin-bottom: 24px;
    }
}

/* ===== Ajustes finales login MJCLEAN ===== */

.task-login,
html.dark-mode .task-login {
    background: #f3f7fb !important;
    color: #1f2937;
}

.task-login #layout-content {
    justify-content: center;
    gap: 0;
}

.task-login #logo {
    position: static !important;
    top: auto !important;
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 180px;
    margin: 0 auto 24px;
    object-fit: contain;
}

.task-login #login-form {
    background: #ffffff !important;
    color: #1f2937 !important;
}

.task-login #login-form .form-control {
    background: #ffffff !important;
    color: #1f2937 !important;
    border-color: #ccd6e0 !important;
}

.task-login #login-form .form-control::placeholder {
    color: #8493a3 !important;
}

.task-login #login-form .input-group-text {
    background: #eef3f7 !important;
    color: #075da8 !important;
    border-color: #ccd6e0 !important;
}

.task-login #login-footer {
    display: none;
}

@media (max-width: 575px) {
    .task-login #logo {
        max-width: 200px;
        max-height: 145px;
        margin-bottom: 18px;
    }
}

/* MJCLEAN - Ajuste de composicion login */
.task-login #layout-content {
    justify-content: center !important;
    padding-bottom: 8vh;
}

.task-login #logo {
    margin: 0 auto 28px !important;
    max-width: 220px !important;
    max-height: 160px !important;
}

.task-login #login-form {
    margin: 0 !important;
}

@media (max-width: 575px) {
    .task-login #layout-content {
        padding-bottom: 3vh;
    }

    .task-login #logo {
        max-width: 180px !important;
        margin-bottom: 20px !important;
    }
}

/* MJCLEAN - Correccion definitiva de posicion del login */

.task-login #layout-content {
    display: block !important;
    position: relative !important;
    min-height: 100vh !important;
    padding: 0 !important;
    text-align: center !important;
}

.task-login #logo {
    position: absolute !important;
    top: calc(50% - 260px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 150px !important;

    margin: 0 !important;
}

.task-login #login-form {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin: 0 !important;
}

@media (max-width: 575px) {
    .task-login #logo {
        top: calc(50% - 225px) !important;
        max-width: 175px !important;
        max-height: 125px !important;
    }

    .task-login #login-form {
        width: calc(100% - 30px) !important;
    }
}

/* MJCLEAN - Correccion definitiva de posicion del login */

.task-login #layout-content {
    display: block !important;
    position: relative !important;
    min-height: 100vh !important;
    padding: 0 !important;
    text-align: center !important;
}

.task-login #logo {
    position: absolute !important;
    top: calc(50% - 260px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: auto !important;
    height: auto !important;
    max-width: 220px !important;
    max-height: 150px !important;

    margin: 0 !important;
}

.task-login #login-form {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: calc(100% - 32px) !important;
    max-width: 420px !important;
    margin: 0 !important;
}

@media (max-width: 575px) {
    .task-login #logo {
        top: calc(50% - 225px) !important;
        max-width: 175px !important;
        max-height: 125px !important;
    }

    .task-login #login-form {
        width: calc(100% - 30px) !important;
    }
}

/* MJCLEAN - Separacion final logo/tarjeta */
.task-login #logo {
    top: calc(50% - 275px) !important;
}

/* MJCLEAN - Posicion final logo */
.task-login #logo {
    top: calc(50% - 300px) !important;
    max-width: 220px !important;
}

@media (max-width: 575px) {
    .task-login #logo {
        top: calc(50% - 285px) !important;
        max-width: 190px !important;
    }
}

/* MJCLEAN - Separacion logo definitiva */
.task-login #logo {
    top: calc(50% - 305px) !important;
}

@media (max-width: 575px) {
    .task-login #logo {
        top: calc(50% - 315px) !important;
        max-width: 190px !important;
    }
}

/* =========================================================
   MJCLEAN - Identidad visual interfaz
   Azul corporativo: #075da8
   ========================================================= */

/* Redactar y acciones principales */
#taskmenu a.button-compose,
#taskmenu .action-buttons a {
    color: #178bd0 !important;
}

#taskmenu a.button-compose:hover,
#taskmenu .action-buttons a:hover {
    color: #4eace2 !important;
}

/* Carpeta seleccionada: Entrada, Enviados, etc. */
.folderlist li.selected > a,
.folderlist li.selected > a:hover {
    color: #ffffff !important;
    background-color: #075da8 !important;
}

/* Iconos dentro de carpeta seleccionada */
.folderlist li.selected > a::before {
    color: #ffffff !important;
}

/* Contadores */
.folderlist .unreadcount,
.folderlist .count {
    background-color: #075da8 !important;
    color: #ffffff !important;
}

/* Elementos seleccionados de listas */
.listing tbody tr.selected td,
.listing li.selected {
    background-color: rgba(7, 93, 168, .24) !important;
}

/* Links y elementos activos */
a {
    --mjclean-link: #178bd0;
}

a:hover {
    --mjclean-link: #4eace2;
}

/* Botones principales */
.btn-primary {
    background-color: #075da8 !important;
    border-color: #075da8 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #064d8a !important;
    border-color: #064d8a !important;
}

/* Focus de formularios */
.form-control:focus {
    border-color: #178bd0 !important;
    box-shadow: 0 0 0 .2rem rgba(7, 93, 168, .18) !important;
}

/* Scrollbar Firefox */
* {
    scrollbar-color: #075da8 transparent;
}

/* Scrollbar Chromium */
::-webkit-scrollbar-thumb {
    background-color: #075da8;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #064d8a;
}

/* MJCLEAN - Pulido final interfaz */

/* Redactar en azul corporativo */
#taskmenu a.button-compose {
    color: #075da8 !important;
}

#taskmenu a.button-compose:hover {
    color: #178bd0 !important;
}

/* Acentos activos */
#taskmenu a.selected,
#taskmenu a:hover {
    border-color: #075da8;
}

/* Seleccion de texto */
::selection {
    background: #075da8;
    color: #ffffff;
}
