/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

/* Label/tag denoting the user that shared a connection */
.jdbc-share-tag {

    background: #0095ff;
    padding: 0.25em;

    -moz-border-radius:    0.25em;
    -webkit-border-radius: 0.25em;
    -khtml-border-radius:  0.25em;
    border-radius:         0.25em;

    color: white;
    font-size: 0.75em;
    font-weight: bold;

}
/* Misiva / Grupo MKP - pantalla de login de Escritorios Virtuales */

div.login-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 32px 16px;
    overflow: auto;
    font-family: Montserrat, "Segoe UI", Carlito, FreeSans, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.10), transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(33, 210, 254, 0.18), transparent 45%),
        linear-gradient(135deg, #2c4191 0%, #22357a 55%, #18265c 100%);
}

/* Burbujas decorativas con el isologo de Misiva */
div.login-ui::before,
div.login-ui::after {
    content: '';
    position: fixed;
    background: url('app/ext/mkp-branding/images/isologo-misiva.svg') center / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

div.login-ui::before {
    width: 520px;
    height: 520px;
    left: -140px;
    bottom: -160px;
    transform: rotate(-12deg);
}

div.login-ui::after {
    width: 360px;
    height: 360px;
    right: -90px;
    top: -110px;
    transform: rotate(14deg);
}

/* Tarjeta principal */
.login-ui .mkp-card {
    order: 1;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 420px;
    max-width: 100%;
    padding: 44px 40px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(10, 20, 60, 0.35);
    text-align: center;
}

.login-ui .mkp-card .mkp-logo {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
}

.login-ui .mkp-card .mkp-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2c4191;
}

.login-ui .mkp-card .mkp-title {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 700;
    color: #1a2140;
}

.login-ui .mkp-card .mkp-text {
    margin: 0 0 28px;
    font-size: 14.5px;
    line-height: 1.6;
    color: #5b6275;
}

/* Botón Microsoft 365 */
.login-ui .mkp-card .mkp-ms-button {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    padding: 0 8px;
    border-radius: 10px;
    background: #2c4191;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(44, 65, 145, 0.35);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.login-ui .mkp-card .mkp-ms-button:hover {
    background: #23367f;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(44, 65, 145, 0.45);
}

.login-ui .mkp-card .mkp-ms-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    background: #fff;
}

.login-ui .mkp-card .mkp-ms-icon svg {
    width: 18px;
    height: 18px;
}

.login-ui .mkp-card .mkp-ms-label {
    flex: 1;
    text-align: center;
    padding-right: 36px;
}

.login-ui .mkp-card .mkp-help {
    margin: 22px 0 0;
    font-size: 12.5px;
    color: #8a90a2;
}

/* Separador hacia el formulario de administradores (solo por IP) */
.login-ui .mkp-card .mkp-admin-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9aa0b0;
}

.login-ui .mkp-card .mkp-admin-divider::before,
.login-ui .mkp-card .mkp-admin-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e3e6ee;
}

/* El enlace "Sign in with: OpenID" original se reemplaza por el botón */
.login-ui .sso-providers {
    display: none;
}

/* Formulario local (solo visible entrando por IP), unido a la tarjeta */
.login-ui .login-dialog-middle {
    order: 2;
    position: relative;
    z-index: 2;
    display: block;
    width: 420px;
    max-width: 100%;
}

.login-ui .login-dialog {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 4px 40px 32px;
    background: #fff;
    border: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 34px 50px -10px rgba(10, 20, 60, 0.35);
    font-size: 1em;
}

html:not(.mkp-sso-only) .login-ui.initial .mkp-card {
    border-radius: 16px 16px 0 0;
    padding-bottom: 18px;
}

.login-ui .login-dialog .login-fields input {
    height: 44px;
    margin-bottom: 10px;
    padding: 0 14px;
    border: 1px solid #d8dce6;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
}

.login-ui .login-fields .labeled-field .field-header {
    margin: 13px 14px;
    font-size: 13px;
}

.login-ui .login-dialog .buttons input[type=submit] {
    height: 44px;
    border: 1px solid #2c4191;
    border-radius: 10px;
    background: #fff;
    color: #2c4191;
    font-family: inherit;
    font-weight: 600;
    text-shadow: none;
    box-shadow: none;
}

.login-ui .login-dialog .buttons input[type=submit]:hover {
    background: #eef1fa;
}

.login-ui.initial .login-dialog .logo,
.login-ui.initial .login-dialog .version {
    display: none;
}

/* Por el dominio publicado: solo Microsoft 365 */
.mkp-sso-only .login-ui.initial .login-dialog-middle,
.mkp-sso-only .login-ui .mkp-admin-divider {
    display: none;
}

/* Pasos intermedios (cambio de contraseña, etc.): solo el formulario */
.login-ui.continuation .mkp-card {
    display: none;
}

.login-ui.continuation .login-dialog {
    padding-top: 28px;
    border-radius: 16px;
}

/* Mensaje de error */
.login-ui.error p.login-error {
    z-index: 2;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .login-ui .mkp-card {
        padding: 36px 22px 26px;
    }
    .login-ui .login-dialog {
        padding: 4px 22px 26px;
    }
}
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
