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

}
/* Nuuv Cloud - tela de login do Guacamole (rds.it2u.cloud) */
.login-ui {
    background: radial-gradient(1200px 600px at 85% -10%, rgba(247,137,12,.28), transparent 60%),
                linear-gradient(160deg, #10131a 0%, #171b24 55%, #1f1a14 100%) !important;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.login-ui .login-dialog {
    max-width: 380px !important;
    width: calc(100% - 32px) !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 16px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.45) !important;
    padding: 36px 32px 28px !important;
    box-sizing: border-box;
}
.login-ui .login-dialog .logo {
    background-image: url('app/ext/nuuv-branding/images/logo.png') !important;
    background-size: contain !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    width: 220px !important;
    height: 54px !important;
    margin: 0 auto 18px !important;
}
.login-ui .login-dialog .version {
    position: static !important;
    padding: 0 0 6px !important;
    text-align: center !important;
}
.login-ui .login-dialog .version .app-name {
    font-size: 26px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    color: #10131a !important;
    text-transform: none !important;
}
.login-ui .login-dialog .version .version-number { display: none !important; }
.login-ui .nuuv-dica {
    text-align: center;
    color: #667085;
    font-size: 13px;
    margin: 6px 0 18px;
}
.login-ui .login-fields .labeled-field {
    display: block !important;
    position: relative !important;
    margin: 0 0 14px !important;
}
.login-ui .login-fields .labeled-field .field-header {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    z-index: auto !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 0 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #344054 !important;
}
.login-ui .login-fields .labeled-field .form-field,
.login-ui .login-fields .labeled-field .form-field > * { display: block !important; width: 100% !important; }
.login-ui .login-fields input[type="text"],
.login-ui .login-fields input[type="password"] {
    width: 100% !important;
    height: 44px !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    font-size: 15px !important;
    color: #10131a !important;
    background: #ffffff !important;
    border: 1px solid #d0d5dd !important;
    border-radius: 10px !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.login-ui .login-fields input[type="text"]:focus,
.login-ui .login-fields input[type="password"]:focus {
    border-color: #f7890c !important;
    box-shadow: 0 0 0 3px rgba(247,137,12,.2) !important;
}
.login-ui .login-dialog .buttons {
    padding-top: 8px !important;
    text-align: center !important;
}
.login-ui .login-dialog .buttons input.login,
.login-ui .login-dialog .buttons input.continue-login {
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #f7890c !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    font-family: inherit !important;
    text-transform: none !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(247,137,12,.35) !important;
}
.login-ui .login-dialog .buttons input.login:hover,
.login-ui .login-dialog .buttons input.continue-login:hover { background: #e07a05 !important; }
.login-ui .login-dialog .buttons input[disabled] { opacity: .6; cursor: wait; }
.login-ui p.login-error {
    background: #b42318 !important;
    color: #ffffff !important;
    border: 0 !important;
    font-weight: 600;
}
.login-ui .nuuv-rodape,
.home-view .nuuv-rodape {
    margin-top: 18px;
    text-align: center;
    color: #9aa3af;
    font-size: 12px;
    line-height: 1.7;
}
.login-ui .nuuv-rodape a,
.home-view .nuuv-rodape a { color: #f7890c; text-decoration: none; }
.login-ui .nuuv-rodape .nuuv-fe,
.home-view .nuuv-rodape .nuuv-fe { font-size: 11px; opacity: .7; }
@media (max-width: 420px) {
    .login-ui .login-dialog { padding: 28px 20px 22px !important; }
}

/* ---------- Lista de aplicativos (home), mesmo visual do login ---------- */
.home-view .connection-list-ui {
    position: fixed !important;
    top: 0; right: 0; bottom: 0; left: 0;
    overflow: auto;
    box-sizing: border-box;
    padding: 72px 16px 40px !important;
    background: radial-gradient(1200px 600px at 85% -10%, rgba(247,137,12,.28), transparent 60%),
                linear-gradient(160deg, #10131a 0%, #171b24 55%, #1f1a14 100%) !important;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* barra do topo: so o menu do usuario, a direita */
.home-view .connection-list-ui > .header:first-child {
    position: absolute !important;
    top: 0; right: 0; left: 0;
    display: flex !important;
    justify-content: flex-end !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 14px 20px !important;
    z-index: 5;
}
.home-view .connection-list-ui > .header:first-child h2 { display: none !important; }
.home-view .connection-list-ui > .header .menu-dropdown {
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
}
.home-view .connection-list-ui > .header .menu-dropdown .menu-title { color: #ffffff !important; }
.home-view .connection-list-ui > .header .menu-dropdown .menu-indicator { filter: invert(1); }
.home-view .connection-list-ui > .header .menu-dropdown .menu-contents {
    color: #10131a; text-align: left; border-radius: 10px; overflow: hidden;
}
/* sem "conexoes recentes" nem filtro */
.home-view guac-recent-connections,
.home-view .recent-connections,
.home-view .connection-list-ui > .header ~ .header { display: none !important; }
/* cartao branco: topo + lista */
.home-view .nuuv-home-topo,
.home-view .all-connections {
    max-width: 420px;
    width: calc(100% - 32px);
    margin: 0 auto !important;
    box-sizing: border-box;
    background: #ffffff !important;
}
.home-view .nuuv-home-topo {
    margin-top: 8vh !important;
    border-radius: 16px 16px 0 0;
    padding: 36px 32px 8px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    clip-path: inset(-80px -80px 0 -80px);
}
.home-view .all-connections {
    border-radius: 0 0 16px 16px;
    padding: 12px 32px 28px !important;
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
    clip-path: inset(0 -80px -80px -80px);
}
.home-view .nuuv-home-logo {
    background: url('app/ext/nuuv-branding/images/logo.png') center / contain no-repeat;
    width: 220px; height: 54px; margin: 0 auto 18px;
}
.home-view .nuuv-home-titulo { font-size: 26px; font-weight: 700; letter-spacing: .04em; color: #10131a; }
.home-view .nuuv-home-dica { color: #667085; font-size: 13px; margin: 6px 0 4px; }
.home-view .all-connections .group-list,
.home-view .all-connections .group-list-page,
.home-view .all-connections .list-item,
.home-view .all-connections .caption {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}
.home-view .all-connections a.home-connection,
.home-view .all-connections a.home-connection-group {
    display: flex !important;
    align-items: center;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 10px;
    padding: 14px 16px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #ffffff;
    color: #10131a !important;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.home-view .all-connections a.home-connection:hover,
.home-view .all-connections a.home-connection-group:hover {
    border-color: #f7890c;
    box-shadow: 0 0 0 3px rgba(247,137,12,.2);
    transform: translateY(-1px);
}
.home-view .all-connections a.home-connection .icon.type {
    flex: 0 0 auto;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    border-radius: 10px;
    background-color: #fff4e6 !important;
    background-size: 20px 20px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.home-view .all-connections a.home-connection .name { flex: 1 1 auto; text-align: left; }
.home-view .all-connections a.home-connection::after {
    content: "Abrir \203A";
    flex: 0 0 auto;
    color: #f7890c;
    font-size: 13px;
    font-weight: 700;
}
.home-view .all-connections a.home-connection .activeUserCount {
    color: #f7890c; font-size: 12px; font-weight: 600;
}
.home-view .nuuv-rodape { margin-top: 18px; }
@media (max-width: 420px) {
    .home-view .nuuv-home-topo { padding: 28px 20px 6px; }
    .home-view .all-connections { padding: 10px 20px 22px !important; }
}
