/* Apache Guacamole - Tema Syndal Moderno */

/* ============================================
   COLORI SYNDAL:
   - Verde principale: #00A651
   - Verde scuro: #008542
   - Verde hover: #00C760
   - Grigio testo: #333333
   - Grigio chiaro: #F5F5F5
   ============================================ */

/* Sfondo principale - Bianco pulito */
body {
    background: #FFFFFF !important;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

/* Pattern sottile opzionale */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 166, 81, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 166, 81, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* Container principale di login */
.login-ui {
    background: url('https://www.pixelstalk.net/wp-content/uploads/image12/A-soft-pastel-green-desktop-background-with-gentle-gradients-giving-a-smooth-calming-effect-with-a-subtle-glow.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 - Stile Syndal */
.login-ui .login-dialog {
    background: #FFFFFF !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 16px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04) !important;
    padding: 3rem 2.5rem !important;
    max-width: 440px;
    width: 90%;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

.login-ui .login-dialog:hover {
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.06) !important;
}

/* Logo Syndal */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/custom-namespace/images/logo.png');
    width: 250px;
    height: 97px;
    -webkit-background-size: 250px auto;
    background-size: 250px auto;
    margin: 0 auto 2rem;
}

/* Header del dialog */
.login-ui .login-dialog h1 {
    color: #333333 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

/* Sottotitolo opzionale */
.login-ui .login-dialog .subtitle {
    color: #666666 !important;
    text-align: center !important;
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 400;
}

/* Labels - Verde Syndal */
.login-ui label {
    color: #333333 !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    letter-spacing: 0.01em;
}

/* Campi di input - Stile moderno */
.login-ui input[type="text"],
.login-ui input[type="password"] {
    color: #333333 !important;
    background: #FAFAFA !important;
    border: 1px solid #E0E0E0 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 1.25rem !important;
    font-weight: 400;
}

.login-ui input[type="text"]:hover,
.login-ui input[type="password"]:hover {
    border-color: #00A651 !important;
    background: #FFFFFF !important;
}

.login-ui input[type="text"]:focus,
.login-ui input[type="password"]:focus {
    color: #333333 !important;
    background: #FFFFFF !important;
    border-color: #00A651 !important;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1) !important;
    outline: none !important;
}

.login-ui input[type="text"]::placeholder,
.login-ui input[type="password"]::placeholder {
    color: #999999 !important;
    font-weight: 400;
}

/* Bottone di login - Verde Syndal */
.login-ui input[type="submit"] {
    background: linear-gradient(135deg, #00A651 0%, #008542 100%) !important;
    border: none !important;
    color: #FFFFFF !important;
    padding: 15px 24px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.25) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    margin-top: 0.5rem !important;
    letter-spacing: 0.02em;
}

.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.6s ease;
}

.login-ui input[type="submit"]:hover {
    background: linear-gradient(135deg, #00C760 0%, #00A651 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.35) !important;
    transform: translateY(-2px) !important;
}

.login-ui input[type="submit"]:hover::before {
    left: 100%;
}

.login-ui input[type="submit"]:active {
    transform: translateY(0px) !important;
    box-shadow: 0 2px 8px rgba(0, 166, 81, 0.3) !important;
}

/* Messaggi di errore */
.login-ui .login-error {
    background: #FFF5F5 !important;
    border: 1px solid #FEB2B2 !important;
    color: #C53030 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 1.25rem !important;
    font-size: 14px !important;
    font-weight: 500;
}

/* Link */
.login-ui a {
    color: #00A651 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease;
}

.login-ui a:hover {
    color: #008542 !important;
    text-decoration: underline !important;
}

/* Checkbox e altri elementi */
.login-ui input[type="checkbox"] {
    accent-color: #00A651;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Footer personalizzato */
.login-ui::after {
    content: 'Syndal Srl™ - Smart Working v2.0';
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #666666;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 24px;
    border: 1px solid #E0E0E0;
    z-index: 5;
    pointer-events: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Animazione di ingresso */
.login-ui .login-dialog {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Divider opzionale */
.login-ui .divider {
    border-top: 1px solid #E0E0E0;
    margin: 1.5rem 0;
}

/* Testo helper */
.login-ui .helper-text {
    color: #666666;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-ui .login-dialog {
        margin: 1rem !important;
        padding: 2rem 1.5rem !important;
        max-width: 100%;
    }

    .login-ui .login-dialog h1 {
        font-size: 1.5rem !important;
    }

    .login-ui input[type="text"],
    .login-ui input[type="password"],
    .login-ui input[type="submit"] {
        font-size: 16px !important; /* Previene zoom automatico su iOS */
    }
    
    .login-ui::after {
        font-size: 11px;
        padding: 8px 16px;
        bottom: 16px;
    }
}

@media (max-width: 480px) {
    body::before {
        display: none; /* Rimuove pattern su schermi piccoli */
    }
    
    .login-ui .login-dialog {
        padding: 1.5rem 1.25rem !important;
    }
}

/* Accessibilità - Focus visibile */
.login-ui *:focus-visible {
    outline: 2px solid #00A651;
    outline-offset: 2px;
}

/* Loading state per il bottone (opzionale) */
.login-ui input[type="submit"].loading {
    background: linear-gradient(135deg, #008542 0%, #006833 100%) !important;
    cursor: wait !important;
    opacity: 0.7;
}

/* Badge "Ricordami" */
.login-ui .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    color: #666666;
    font-size: 14px;
}

/* Stile alternativo per messaggi di successo */
.login-ui .login-success {
    background: #F0FFF4 !important;
    border: 1px solid #9AE6B4 !important;
    color: #2F855A !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 1.25rem !important;
    font-size: 14px !important;
    font-weight: 500;
}

/* Accento verde su elementi attivi */
.login-ui .field-container.active label {
    color: #00A651 !important;
}

/* Transizioni fluide globali */
.login-ui * {
    transition: all 0.2s ease;
}
/*
 * 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}