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

}
/* ============================================================
   SIRIUS DESK — tema do Guacamole (estilo Kasm Workspaces)
   Identidade: Imobiliária Gabriel · ecossistema Sirius
   Tokens: verde #8ECA3B · hover #79B42E · slate-900 #0F172A ·
           slate-950 #020617 · raio 14px · Poppins
   ============================================================ */

@font-face { font-family:'Poppins'; font-weight:400; src:url('app/ext/sirius-desk/fonts/poppins-400.ttf') format('truetype'); }
@font-face { font-family:'Poppins'; font-weight:600; src:url('app/ext/sirius-desk/fonts/poppins-600.ttf') format('truetype'); }
@font-face { font-family:'Poppins'; font-weight:700; src:url('app/ext/sirius-desk/fonts/poppins-700.ttf') format('truetype'); }

body, input, button, select, textarea {
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
}

/* ---------- TELA DE LOGIN · split-screen estilo Kasm ---------- */

.login-ui {
    background: #020617 url('app/ext/sirius-desk/images/bg.jpg') center/cover no-repeat fixed !important;
}
.login-ui::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,6,23,.78) 0, rgba(2,6,23,.34) 30%, rgba(2,6,23,0) 52%);
    pointer-events: none;
}

/* marca gigante na área direita, como o logo do Kasm —
   caixa com folga + contain: nunca corta, em nenhuma tela */
.login-ui::after {
    content: "";
    position: fixed;
    top: 32vh; right: 8vw; bottom: 32vh; left: calc(420px + 8vw);
    background: url('app/ext/sirius-desk/images/lockup.png') center / contain no-repeat;
    filter: drop-shadow(0 10px 34px rgba(2,6,23,.65));
    pointer-events: none;
}

/* coluna de login à esquerda */
.login-ui .login-dialog {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 420px;
    font-size: 16px;
    max-width: 88vw;
    margin: 0;
    border-radius: 0 !important;
    border: 0 !important;
    border-right: 1px solid rgba(255,255,255,.08) !important;
    background: rgba(2,6,23,.82) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 24px 0 48px rgba(0,0,0,.35) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 200px 64px 48px 64px !important;
    z-index: 2;
}

/* ------------------------------------------------------------------
   UM SÓ ALINHAMENTO NA COLUNA (revisão de 18/08/2026)
   Antes: símbolo, título e subtítulo centralizados, e o slogan do rodapé
   alinhado à esquerda — dois alinhamentos na mesma coluna. É a origem do
   desconforto que o dono vinha apontando ("nem tudo está alinhado").
   Agora tudo se pendura numa única linha invisível na esquerda do bloco
   (x = 64px, a mesma borda dos campos e do botão), que atravessa a coluna
   inteira de cima a baixo. Regra de Robin Williams, cap. Alinhamento:
   "utilizar apenas um alinhamento de texto por página" — e centralizar por
   automatismo é o reflexo de iniciante, não escolha.
   O rótulo do botão segue centrado DENTRO do botão: isso é composição
   interna de um controle, não alinhamento de texto da página.
   ------------------------------------------------------------------ */

/* símbolo limpo no topo da coluna (sem descritor ilegível) */
.login-ui .login-dialog .logo {
    width: 64px !important;
    height: 64px !important;
    margin: 0 0 28px 0;
    background: url('app/ext/sirius-desk/images/symbol.png') left center/contain no-repeat !important;
}

/* título + subtítulo didático (elementos reais via patch de HTML) */
.sirius-intro { text-align: left; height: 148px; margin-bottom: 16px; }
.sirius-intro h2 {
    text-transform: none;
    color: #F8FAFC;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .2px;
    margin: 0 0 8px 0;
}
.sirius-intro p {
    color: #B7C1D1;
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
}

/* rótulo flutuante na borda do campo, como no Workspace */
.login-ui .login-dialog .labeled-field { position: relative; }
.login-ui .login-dialog .labeled-field::before {
    position: absolute;
    top: -7px; left: 12px;
    background: #0A0F1E;
    padding: 0 7px;
    font-size: 11px;
    color: #B7C1D1;
    letter-spacing: .04em;
    z-index: 2;
    pointer-events: none;
}
.login-ui .login-dialog .labeled-field-username::before { content: "Usuário"; }
.login-ui .login-dialog .labeled-field-password::before { content: "Senha"; }

/* Rodapé da coluna: frase de pertencimento + assinatura da casa.
   A segunda linha, que era o texto "IMOBILIÁRIA GABRIEL · 44 ANOS", virou o
   LOGO (decisão de 18/08/2026): mesma informação, muito mais força de marca,
   e sai uma linha de ruído tipográfico. */
.sirius-slogan {
    position: absolute;
    left: 64px; right: 64px; bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}
.sirius-slogan .l1 {
    color: #8ECA3B;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    line-height: 1.55;
}
.sirius-slogan .assinatura {
    height: 22px;
    width: auto;
    display: block;
    opacity: .88;
}

.login-ui .login-dialog .text-header,
.login-ui .login-dialog .title,
.login-ui .login-dialog h1,
.login-ui .login-dialog .app-name { display: none !important; }


.login-ui .login-dialog .field-header,
.login-ui .login-dialog label {
    color: #94A3B8 !important;
    font-size: .78em;
    letter-spacing: .08em;
}

.login-ui .login-dialog input[type=text],
.login-ui .login-dialog input[type=password] {
    background: #0F172A !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    border-radius: 10px !important;
    color: #F8FAFC !important;
    height: 44px !important;
    box-sizing: border-box;
    padding: 0 12px !important;
    font-size: 14px !important;
    width: 100%;
}
.login-ui .login-dialog input[type=text]:focus,
.login-ui .login-dialog input[type=password]:focus {
    outline: 2px solid #8ECA3B !important;
    outline-offset: 1px;
    border-color: transparent !important;
}
.login-ui .login-dialog input::placeholder { color: #64748B !important; }

.login-ui .login-dialog .buttons input[type=submit],
.login-ui .login-dialog input[type=submit] {
    background: #8ECA3B !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 13px !important;
    height: 44px !important;
    box-sizing: border-box;
    padding: 0 !important;
    width: 100%;
    cursor: pointer;
    transition: background 150ms ease-in-out;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M4 11h12.17l-5.59-5.59L12 4l8 8-8 8-1.41-1.41L16.17 13H4z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 15px !important;
    background-position: calc(50% - 48px) center !important;
}
.login-ui .login-dialog .buttons input[type=submit]:hover,
.login-ui .login-dialog input[type=submit]:hover {
    background: #79B42E !important;
}


.login-ui .login-dialog .login-error {
    background: rgba(220,53,69,.14) !important;
    border: 1px solid rgba(220,53,69,.4) !important;
    border-radius: 10px !important;
    color: #FCA5A5 !important;
}

.login-ui .version { display: none !important; }

/* telas estreitas: volta ao card central */
@media (max-width: 900px) {
    .login-ui::after { display: none; }
    .login-ui .login-dialog {
        position: relative;
        left: auto; top: auto; bottom: auto;
        width: auto;
        max-width: 340px;
        margin: auto;
        border-radius: 14px !important;
        border: 1px solid rgba(255,255,255,.09) !important;
        box-shadow: 0 16px 16px rgba(0,0,0,.4) !important;
        padding: 2.2em 2.4em !important;
    }
}

/* ---------- INTERFACE AUTENTICADA ---------- */

/* barra superior translúcida, como o header do site da Gabriel */
.header {
    background: rgba(2,6,23,.86) !important;
    border-bottom: 1px solid rgba(148,163,184,.16) !important;
    backdrop-filter: blur(8px);
}
.header .home-button,
.header .user-menu .menu-title { color: #F8FAFC !important; }

body { background: #0B1222 !important; color: #F8FAFC; }

/* home: grade de cards estilo Kasm no lugar da lista */
.recent-connections .connection,
.all-connections .connection,
.connection-list .connection {
    background: #0F172A !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    border-radius: 14px !important;
    padding: 14px !important;
    margin: 8px !important;
    transition: border-color 150ms ease-in-out, transform 150ms ease-in-out;
}
.recent-connections .connection:hover,
.all-connections .connection:hover,
.connection-list .connection:hover {
    border-color: rgba(142,202,59,.55) !important;
    transform: translateY(-2px);
}
.connection .name { color: #F8FAFC !important; font-weight: 600; }

.all-connections .connection-group-contents,
.recent-connections {
    display: flex;
    flex-wrap: wrap;
}

/* links e destaques em verde */
a, .home-connection .name:hover { color: #8ECA3B !important; }

/* botões gerais */
button, input[type=submit] {
    border-radius: 10px !important;
}
button.primary, input[type=submit].primary {
    background: #8ECA3B !important;
    color: #fff !important;
    border: 0 !important;
}
button.primary:hover { background: #79B42E !important; }

/* menus e diálogos */
.menu-dropdown .menu-contents,
.modal .modal-body {
    background: #0F172A !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    border-radius: 14px !important;
    color: #F8FAFC;
}
