/*!
 * -------------------------------------------------------------------------
 * News plugin for GLPI
 * -------------------------------------------------------------------------
 *
 * LICENSE
 *
 * This file is part of News.
 *
 * News is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * News is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with News. If not, see <http://www.gnu.org/licenses/>.
 * -------------------------------------------------------------------------
 * @copyright Copyright (C) 2015-2022 by News plugin team.
 * @license   GPLv2 https://www.gnu.org/licenses/gpl-2.0.html
 * @link      https://github.com/pluginsGLPI/news
 * -------------------------------------------------------------------------
 */

/* =========================================================
   TEMPLATE 1
   ========================================================= */

body {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    overflow: auto !important;
}

.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
    outline: 0 !important;
    outline-offset: 0 !important;
}

body>div.row.h-100.main>div>div>div>div.card.card-md>div>div>div>span {
    width: 90%;
    height: 100%;
}



.form-label {
    display: flex;
    color: rgba(var(--tblr-secondary-rgb), var(--tblr-text-opacity)) !important;
}

.form-check-label {
    display: flex;
}

#fullcontent {
    --sk-primary: var(--tblr-primary, #206bc4);
    --sk-text: var(--tblr-body-color, #2e2d33);
    --sk-muted: var(--tblr-secondary, #5f6572);
    --sk-line: var(--tblr-border-color, #dfe2e8);
    --sk-bg: var(--tblr-card-bg, #fff);
    --sk-radius: 6px;
    --sk-social-radius: 50%;
}


#fullcontent>div {
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;
}

#main-card {
    height: 36rem !important;
    min-height: 0 !important;
    max-height: calc(100vh - 48px);
    border: 0 !important;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .35) !important;
}

#main-card>.row,
#main-card .row.g-0 {
    height: 100%;
    margin: 0;
}

#a-side {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--sk-primary) 4%, var(--sk-bg));
}

#a-side .logoA {
    flex: 0 0 auto;
}

#local_caixa_login {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    padding: 0 24px 16px;
    font-size: 13.5px;
    color: var(--sk-muted);
    overflow-y: auto;
    overflow-x: hidden;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
}

#local_caixa_login img,
#local_caixa_login video,
#local_caixa_login iframe,
#local_caixa_login table {
    max-width: 100%;
    height: auto;
}

#img_brand_div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 110px !important;
    margin: 0 !important;
}

#local_caixa_login {
    width: 100%;
    padding: 0 24px;
    font-size: 13.5px;
    color: var(--sk-muted);
}

#local_caixa_login:has(p:empty),
#local_caixa_login:empty {
    display: none;
}

#form_inject {
    border-left: 1px solid var(--sk-line) !important;
    background: var(--sk-bg);
}

#form_inject>.row {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 0;
}

#form_inject .card-header {
    margin-bottom: 12px !important;
    padding: 0 0 4px !important;
    border-bottom: 0 !important;
}

#login_title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    color: var(--sk-text);
}

#normal_login {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

#local_user,
#local_pass,
#local_origin {
    flex: 0 0 100%;
    margin: 0 0 12px !important;
}

#normal_login .form-label {
    margin-bottom: 3px !important;
    font-size: 13px;
}

#normal_login .form-control,
#normal_login .form-select {
    box-sizing: border-box;
    width: 100%;
    height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13.5px;
    border-radius: var(--sk-radius);
}

#normal_login .form-control:focus,
#normal_login .form-select:focus {
    border-color: var(--sk-primary) !important;
    box-shadow: 0 1px 2px color-mix(in srgb, var(--sk-primary) 20%, transparent),
        0 6px 16px color-mix(in srgb, var(--sk-primary) 22%, transparent) !important;
}

#normal_login .form-check-input:checked {
    background-color: var(--sk-primary) !important;
    border-color: var(--sk-primary) !important;
}

#local_remember {
    flex: 1 1 auto;
    margin: 0 0 14px !important;
}

#local_remember .form-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#local_remember .form-check-input {
    flex: 0 0 auto;
    float: none;
    margin: 0;
}

#local_remember .form-check-label {
    font-size: 13px;
    color: var(--sk-muted);
}

#local_forget {
    flex: 0 0 auto;
    margin: 0 0 14px !important;
    font-size: 13px;
}

#local_forget a {
    color: var(--sk-primary) !important;
    text-decoration: none;
}

#local_forget a:hover {
    text-decoration: underline;
}

#local_button {
    flex: 0 0 100%;
    margin: 0 !important;
}

#signin_button {
    height: 40px;
    border-radius: var(--sk-radius);
    background: var(--sk-bg) !important;
    color: var(--sk-primary) !important;
    border: 1.5px solid var(--sk-primary) !important;
    box-shadow: none !important;
}

#signin_button:hover {
    background: var(--sk-primary) !important;
    color: #fff !important;
}

#local_others {
    width: 100%;
    margin: 20px 0 0 !important;
    padding: 20px 0 0 !important;
    border-top: 1px solid var(--sk-line);
}

#local_others [id^="vauth-"] {
    margin: 0 !important;
}

#local_others [id^="vauth-"] form {
    display: flex;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

#local_others [id^="vauth-"] button {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0 !important;
    transition: box-shadow .25s ease, transform .25s ease,
        border-color .25s ease, background-color .25s ease !important;
}

#local_others:not(:has(> [id^="vauth-"] ~ [id^="vauth-"])) [id^="vauth-"] button {
    width: 100% !important;
    height: 52px !important;
    padding: 0 16px !important;
    background-color: var(--sk-bg) !important;
    border: 1px solid var(--sk-line) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 22px -3px rgba(0, 0, 0, .14),
        0 4px 6px -2px rgba(0, 0, 0, .05) !important;
}

#local_others:not(:has(> [id^="vauth-"] ~ [id^="vauth-"])) [id^="vauth-"] button:hover {
    transform: translateY(-2px) !important;
    border-color: var(--sk-primary) !important;
    box-shadow: 0 14px 28px -2px color-mix(in srgb, var(--sk-primary) 35%, transparent),
        0 6px 12px -2px color-mix(in srgb, var(--sk-primary) 20%, transparent) !important;
}

#local_others:not(:has(> [id^="vauth-"] ~ [id^="vauth-"])) [id^="vauth-"] img {
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
    margin: 0 !important;
    background: transparent !important;
}

#local_others:not(:has(> [id^="vauth-"] ~ [id^="vauth-"])) [id^="textHidden"] {
    margin: 0 !important;
    color: var(--sk-text) !important;
    -webkit-text-fill-color: var(--sk-text) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

#local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

#local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) [id^="vauth-"] {
    flex: 0 0 auto;
    width: auto !important;
    padding: 0 !important;
}

#local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) [id^="vauth-"] button {
    width: 45px !important;
    height: 45px !important;
    padding: 0 !important;
    background: var(--sk-bg) !important;
    border: 1px solid var(--sk-line) !important;
    border-radius: var(--sk-social-radius) !important;
    box-shadow: 0 6px 16px -2px rgba(36, 54, 110, .12) !important;
    color: transparent !important;
}

#local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) [id^="vauth-"] button:hover {
    transform: translateY(-3px) !important;
    border-color: var(--sk-primary) !important;
    box-shadow: 0 10px 22px -2px color-mix(in srgb, var(--sk-primary) 40%, transparent) !important;
}

#local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) [id^="vauth-"] img {
    position: static !important;
    transform: none !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
}

#local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) [id^="textHidden"] {
    display: none !important;
}

#local_faq {
    text-align: center;
}

#local_faq:empty {
    display: none;
}

#local_faq>div {
    margin: 16px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

#local_faq .btn {
    margin-top: 0 !important;
    border-radius: var(--sk-radius);
}

#faq_position_mobile:has(#faq_button_mobile:empty) {
    display: none;
}

#faq_position_mobile hr {
    margin: 12px 0;
    border-color: var(--sk-line);
    opacity: 1;
}

@media (max-width: 769.98px) {

    #local_caixa_login {
        max-height: 40vh;
    }

    #fullcontent {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 100% !important;
        min-height: 100vh !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #fullcontent>div {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    #main-card {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 100vh !important;
        height: auto !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    #form_inject {
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        padding: 32px 20px !important;
        border-left: none !important;
    }

    #form_inject .row {
        width: 100% !important;
        margin: 0 !important;
    }

    #fullcontent>div {
        max-width: 100% !important;
        padding: 0;
    }

    #main-card {
        min-height: 0 !important;
        border-radius: 0;
        box-shadow: none !important;
    }

    #a-side {
        background: transparent;
    }

    #a-side .logoA {
        padding-top: 2rem !important;
        padding-bottom: .5rem !important;
    }

    #img_brand_div {
        height: 80px !important;
    }

    #form_inject {
        border-left: 0 !important;
        padding: 8px 20px 32px !important;
    }

    #form_inject>.row {
        max-width: 420px;
    }

    #normal_login .form-control,
    #normal_login .form-select {
        height: 42px;
        font-size: 14px;
    }

    #signin_button {
        height: 44px;
    }

    #local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) [id^="vauth-"] button {
        width: 56px !important;
        height: 56px !important;
    }
}

@media (max-width: 380px) {
    #form_inject {
        padding: 8px 14px 24px !important;
    }

    #local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) {
        gap: 9px;
    }

    #local_others:has(> [id^="vauth-"] ~ [id^="vauth-"]) [id^="vauth-"] button {
        width: 50px !important;
        height: 50px !important;
    }
}