/* Sicilia Digitale Branding - Tema Rosso */

/* Sfondo pagina login - gradiente rosso scuro */
.login-ui {
    background: linear-gradient(135deg, #1a0000 0%, #4a0000 30%, #8b0000 60%, #c0392b 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}

/* Effetto decorativo sottile */
.login-ui::before {
    content: "" !important;
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Box login centrato */
.login-ui .login-dialog {
    background: rgba(255, 255, 255, 0.97) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1) !important;
    padding: 35px 30px !important;
    position: relative !important;
    z-index: 1 !important;
    margin: auto !important;
}

/* Linea rossa decorativa sopra il box login */
.login-ui .login-dialog::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60% !important;
    height: 4px !important;
    background: linear-gradient(90deg, transparent, #c0392b, #e74c3c, #c0392b, transparent) !important;
    border-radius: 0 0 4px 4px !important;
}

/* Logo Sicilia Digitale centrato */
.login-ui .logo {
    background-image: url("app/ext/sicilia-branding/images/siciliadigitale.jpeg") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    width: 100% !important;
    max-width: 320px !important;
    height: 105px !important;
    margin: 0 auto 15px auto !important;
    display: block !important;
}

/* Nascondi testo titolo */
.login-ui .logo .app-name {
    display: none !important;
}

/* Campi input */
.login-ui .login-dialog .fields input {
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    transition: border-color 0.3s !important;
}

.login-ui .login-dialog .fields input:focus {
    border-color: #c0392b !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15) !important;
    outline: none !important;
}

/* Pulsante login ROSSO */
.login-ui .login-dialog .buttons button,
.login-ui .login-dialog button.login {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.3) !important;
    transition: all 0.3s !important;
}

.login-ui .login-dialog .buttons button:hover,
.login-ui .login-dialog button.login:hover {
    background: linear-gradient(180deg, #c0392b 0%, #a93226 100%) !important;
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.45) !important;
    transform: translateY(-1px) !important;
}

/* Testo sotto Login */
.login-ui .login-dialog .buttons::after {
    content: "Servizio offerto da Desolabs" !important;
    display: block !important;
    text-align: center !important;
    margin-top: 18px !important;
    color: #999 !important;
    font-size: 11px !important;
    letter-spacing: 0.3px !important;
}

/* Footer con loghi */
#desolabs-footer {
    position: fixed !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    text-align: center !important;
    z-index: 1000 !important;
}

#desolabs-footer a {
    display: inline-block !important;
    margin: 0 15px !important;
    vertical-align: middle !important;
}

#desolabs-footer img {
    height: 40px !important;
    width: auto !important;
    opacity: 0.85 !important;
    transition: opacity 0.3s !important;
    filter: brightness(1.1) !important;
}

#desolabs-footer img:hover {
    opacity: 1 !important;
}

/* Barra superiore rossa quando loggati */
.home .header {
    background: linear-gradient(90deg, #8b0000, #c0392b) !important;
}
/*
 * 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;

}
