/* Apache Guacamole - Tema Avocado Personalizzato */


/* Sfondo principale con gradiente avocado */
body {
    background: url('https://www.hdwallpapers.in/download/white_wallpaper_5_4k_hd_white-3840x2160.jpg') center/cover no-repeat !important;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Pattern di sfondo opzionale */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 400px 400px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}


/* Container principale di login */
.login-ui {
     color: #666;
    background: url('https://panera.eu/wp-content/uploads/2020/10/BOLOGNA-Panera-LOW.jpg') center/cover no-repeat !important;
    background-attachment: fixed;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    position: relative;
    z-index: 10;
}

/* Dialog di login principale */
.login-ui .login-dialog {
    color: rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.99) !important;
    backdrop-filter: blur(20px);
    border: 2px solid #333 !important;
    border-radius: 16px !important;
    box-shadow:
        0 25px 50px -12px rgba(102, 102, 102, 0.5),
        0 0 0 1px rgba(102, 102, 102, 0.5),
        inset 0 1px 0 rgba(102, 102, 102, 0.5) !important;
    padding: 2rem !important;
    max-width: 400px;
    width: 90%;
    position: relative;
    z-index: 10;
}





/* Header del dialog */
.login-ui .login-dialog h1 {
    color: #C6010C !important;
    background: linear-gradient(135deg, #444, #333, #000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.8rem !important;
    font-weight: bold;
    animation: shimmer-text 3s ease-in-out infinite;
}

@keyframes shimmer-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Campi di input */
.login-ui input[type="text"],
.login-ui input[type="password"] {

     color: #666;
    background: rgba(255, 255, 255, 1) !important;
    border: 2px solid #333 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1rem !important;
}

.login-ui input[type="text"]:focus,
.login-ui input[type="password"]:focus {
    color: #666;
    background: rgba(255, 255, 255, 1) !important;
    border-color: #333 !important;
    box-shadow:
        0 0 0 3px #666,
        0 4px 12px #666 !important;
    transform: translateY(-1px);
    outline: none !important;
}

.login-ui input[type="text"]::placeholder,
.login-ui input[type="password"]::placeholder {
    color: #333 !important;
}

/* Labels */
.login-ui label {
    color: #C6010C !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Bottone di login */
.login-ui input[type="submit"] {
    background: linear-gradient(135deg, #444 0%, #333 50%, #000 100%) !important;
    border: none !important;
    color: white !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    box-shadow:
        0 8px 8px #666,
        0 4px 4px #666,
        inset 0 1px 0 rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
    margin-top: 1rem !important;
}

.login-ui input[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-ui input[type="submit"]:hover::before {
    left: 100%;
}

.login-ui input[type="submit"]:hover {
    background: linear-gradient(135deg, #000 0%, #333 50%, #444 100%) !important;
    box-shadow:
        0 6px 12px #fff,
        0 3px 6px #fff !important;
    transform: translateY(-2px) !important;
}

.login-ui input[type="submit"]:active {
    transform: translateY(0px) !important;
    box-shadow:
        0 2px 4px #666,
        0 1px 2px #666 !important;
}

/* Messaggi di errore */
.login-ui .login-error {
    background: rgba(239, 68, 68, 0.3) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #dc2626 !important;
    padding: 12px !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    font-size: 14px !important;
}

/* Link e testo aggiuntivo */
.login-ui a {
    color: #FF6117 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.login-ui a:hover {
    color: #C6010C !important;
    text-decoration: underline !important;
}


/* Footer personalizzato */
.login-ui::after {
    content: 'Fondazione Bologna Welcome™ - Smart Working v2.0';
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #000;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #000;
    z-index: 5;
    pointer-events: none;
}

/* Responsive design */
@media (max-width: 768px) {
    body::after,
    .login-ui::before {
        display: none !important;
    }

    .login-ui .login-dialog {
        margin: 1rem !important;
        padding: 1.5rem !important;
    }

    .login-ui input[type="text"],
    .login-ui input[type="password"],
    .login-ui input[type="submit"] {
        font-size: 16px !important; /* Previene zoom su iOS */
    }
}

/* Animazioni per migliorare l'esperienza */
.login-ui .login-dialog {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Effetti hover aggiuntivi */
.login-ui input[type="text"]:hover,
.login-ui input[type="password"]:hover {
    border-color: #FF6117 !important;
}

/* Colour codes used */
/*    Guacamole grassy green: #88bf5b */
/*    Warning red #ff2233 */
/*    Main background charcoal #3f3f3f */
/*    Input fields dark charcoal #2b2b2b */
/*    Login dialog background black #000000 */
/*    All text: #ececec */



.login-ui .login-dialog .logo {
    background-image: url('app/ext/custom-namespace/images/logo.png');
    width: 250px;
    height:	97px;
    -webkit-background-size: 250px auto;

}


/*
 * 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;

}
.quickconnect-container{margin:.25em 0;width:100%;margin-left:.50em}.quickconnect-container .quickconnect-field{background-image:url('images/protocol-icons/guac-text.png');background-repeat:no-repeat;background-size:1.50em;background-position:.25em center;background-color:transparent;padding:.25em;padding-left:2.50em;width:100%;max-width:none;border:0;box-sizing:border-box}.quickconnect-button{clear:both;float:right;margin-right:.75em;font-size:.75em;padding:.25em}.quickconnect-list-item{vertical-align:middle;align-content:center;display:flex}.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}