@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

/* 1. Deep Space Nebula Background */
html, body, .login-ui, .guac-viewport {
    font-family: 'Manrope', sans-serif !important;
    background-color: #030514 !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(126, 34, 206, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, #030514 100%) !important;
    background-attachment: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    overflow: hidden !important;
}

/* Atmospheric Elements */
.login-ui::before, .login-ui::after {
    content: "" !important;
    position: fixed !important;
    border-radius: 50% !important;
    filter: blur(140px) !important;
    z-index: 0 !important;
    opacity: 0.25 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Blue Orb top-left */
.login-ui::before {
    width: 900px !important;
    height: 900px !important;
    background: #1d4ed8 !important;
    top: -20% !important;
    left: -15% !important;
}

/* Purple Orb bottom-right */
.login-ui::after {
    width: 700px !important;
    height: 700px !important;
    background: #581c87 !important;
    bottom: -10% !important;
    right: -10% !important;
}

/* 2. Crystal Glassmorphic Card (Absolute Center) */
.login-ui .login-dialog {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 100 !important;
    margin: 0 !important;

    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
    border-radius: 40px !important;
    padding: 60px 45px !important;
    width: 480px !important;
    max-width: 95% !important;
    text-align: center !important;
    color: #ffffff !important;
    visibility: visible !important;
}

/* 3. Typography & Titles */
.login-ui .login-dialog .logo,
.login-ui .login-dialog h1,
.login-ui .login-dialog h3,
.login-ui .login-dialog .version {
    display: none !important;
}

.login-ui .login-dialog::before {
    content: "Afinity" !important;
    display: block !important;
    font-size: 52px !important;
    font-weight: 300 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.05em !important;
    margin-bottom: 5px !important;
    color: #ffffff !important;
}

.login-ui .login-dialog .login-fields::before {
    content: "Every where you go you 'll meet me !\a 2026" !important;
    white-space: pre !important;
    display: block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 40px !important;
    text-transform: none !important;
}

/* 4. Inputs & Buttons */
.login-ui .login-dialog .login-fields {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

.login-ui .login-dialog input:not([type="submit"]):not([type="button"]) {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 9999px !important;
    color: #ffffff !important;
    padding: 14px 25px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
}

.login-ui .login-dialog button, 
.login-ui .login-dialog input[type="submit"] {
    background: linear-gradient(180deg, #F9D949 0%, #D97706 100%) !important;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    border: none !important;
    border-radius: 9999px !important;
    padding: 16px !important;
    margin-top: 25px !important;
    width: 100% !important;
    cursor: pointer !important;
    box-shadow: 0 8px 30px rgba(217, 119, 6, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 5. THE DEFINITIVE ERROR POPUP (Floating Toast at Top) */
.login-ui .login-error {
    position: fixed !important;
    top: 30px !important; /* Floating at top */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    min-width: 300px !important;
    max-width: 90% !important;
    height: auto !important;
    background: rgba(153, 27, 27, 0.4) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    padding: 15px 30px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    z-index: 1000000 !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    margin: 0 !important;
    animation: slide-down 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}

@keyframes slide-down {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

/* Hide normal notifications if they still appear */
.notify.error, .notification.error, .guac-notification.error {
    display: none !important;
}

/* Hide duplicate buttons */
.login-ui .login-dialog button:nth-of-type(n+2) {
    display: none !important;
}

/* Links */
.login-ui .login-dialog .login-fields::after {
    content: "Mot de passe oublié ?\a Créer un compte" !important;
    white-space: pre !important;
    display: block !important;
    margin-top: 30px !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !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;

}
