/*
 * 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;

}
/* 1. IMPORTAR FUENTE ROBOTO (Desde Google Fonts) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* 2. APLICAR FUENTE Y FONDO */
.login-ui {
    background-image: url('app/ext/mi-branding/background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}
    
    /* Aplicar Roboto a todo */
    font-family: 'Roboto', sans-serif !important;
}
/* Forzar que el fondo no sea tapado por el body */
body.login {
    background: transparent !important;
    font-family: 'Roboto', sans-serif !important;
}

/* 3. CAJA DE LOGIN (CENTRAR Y ESTILIZAR) */
.login-ui .login-dialog {
    position: fixed !important; 
    
    /* Coordenadas para centrar */
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important; /* Mueve la caja la mitad de su propio tamaño hacia atrás */
    
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important; 
    border: 1px solid #444 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    color: white !important;
    width: 350px !important; 
}

/* Ajustes de los inputs y botones para que se vean bien con Roboto */
.login-ui .login-dialog .login-fields input {
    background: #333 !important;
    color: white !important;
    border: 1px solid #555 !important;
    font-family: 'Roboto', sans-serif !important;
}

.login-ui .login-dialog .login-buttons button {
    background-color: #007bff !important;
    font-family: 'Roboto', sans-serif !important;
    font-weight: 700 !important;
}

/* Opcional: Cambiar color del texto de copyright/versión abajo si molesta */
.login-ui .login-footer {
    display: none !important; /* Esto lo oculta para que se vea limpio */
}
/* Quitar overlay oscuro de Guacamole (NO afecta tu login-dialog) */
.login-ui::before,
.login-ui::after {
    display: none !important;
    content: none !important;
}

/* Quitar degradado interno del login-dialog */
.login-ui .login-dialog {
    background-image: none !important;
}

