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

}
.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}/* Escritorio en la Nube — portal (Guacamole). Coherente con escritorioenlanube.com:
   Comfortaa · azul #2683BA / #40A1F2 · azul oscuro #0b3b60 · texto #333B41 · fondo #EDF3F7 */
@font-face {
    font-family: 'Comfortaa';
    src: url('app/ext/nube/fonts/comfortaa.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}

/* ---------- pantalla de acceso ---------- */
div.login-ui {
    background: #EDF3F7;
    background-image: linear-gradient(160deg, #EDF3F7 0%, #dbe8f2 100%);
    font-family: 'Comfortaa', 'Segoe UI', Arial, sans-serif;
}
.login-ui .login-dialog {
    background: #ffffff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(11, 59, 96, 0.18);
    padding: 1.5em 2em 1.25em;
    max-width: 24em;
}
/* logo (tres monitores) + marca debajo */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/nube/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 120px;
    height: 72px;
    margin: 0 auto 0.25em;
}
.login-ui .login-dialog .version .app-name {
    background-image: url('app/ext/nube/images/wordmark.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 220px;
    height: 20px;
    margin: 0 auto 1em;
    text-indent: -9999px;       /* oculta el texto, queda la imagen */
    overflow: hidden;
}
.login-ui .login-dialog .version .version-number { display: none; }

.login-ui .login-dialog .login-fields th { color: #333B41; font-weight: 400; }
.login-ui .login-dialog .login-fields input[type=text],
.login-ui .login-dialog .login-fields input[type=password],
.login-ui .login-dialog .login-fields input[type=number] {
    border: 1px solid #c9d6e2;
    border-radius: 8px;
    padding: 0.55em 0.7em;
    font-family: inherit;
}
.login-ui .login-dialog .login-fields input:focus { border-color: #40A1F2; outline: none; box-shadow: 0 0 0 3px rgba(64,161,242,0.25); }
.login-ui .login-dialog .buttons input[type=submit],
.login-ui .login-dialog .buttons button {
    background: linear-gradient(90deg, #2683BA 0%, #40A1F2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6em 1.6em;
    font-family: inherit;
    font-weight: 700;
    text-shadow: none;
    box-shadow: none;
}
.login-ui .login-dialog .buttons input[type=submit]:hover,
.login-ui .login-dialog .buttons button:hover { background: #0b3b60; }
.login-ui .login-dialog .login-error { border-radius: 8px; }

/* pie con soporte */
.login-ui .nube-footer {
    text-align: center;
    color: #5f6b76;
    font-size: 0.8em;
    margin-top: 1.2em;
}
.login-ui .nube-footer a { color: #2683BA; text-decoration: none; }

/* ---------- interior (lista de conexiones, menú) ---------- */
body { font-family: 'Comfortaa', 'Segoe UI', Arial, sans-serif; }
.header { background: #0b3b60; }
.header .header-logo, .header a.home-button { color: #fff; }
.user-menu .menu-title, .header .menu .menu-title { color: #fff; }
.button, button, input[type=submit] { font-family: inherit; }
.button.primary, button.primary, input[type=submit].primary,
.recent-connections .connection:hover { background: #2683BA; }

/* ---------- «Instalar la aplicación» (js/instalar.js pone las clases en <html>) ---------- */
.login-ui .nube-instalar { text-align: center; margin: 0.75em 0 0; }
.login-ui .nube-instalar-boton, .login-ui .nube-instalar-ayuda { display: none; }
.nube-instalable .login-ui .nube-instalar-boton {
    display: inline-block; background: #ffffff; color: #2683BA; border: 1px solid #2683BA;
    border-radius: 6px; padding: 0.45em 1.1em; font-size: 0.9em; cursor: pointer;
}
.nube-instalable .login-ui .nube-instalar-boton:hover { background: #2683BA; color: #ffffff; }
.nube-ua-safari .login-ui .nube-instalar-safari,
.nube-ua-ios    .login-ui .nube-instalar-ios,
.nube-ua-otro   .login-ui .nube-instalar-otro { display: block; color: #5f6b76; font-size: 0.8em; margin: 0; }
