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

}
/* ===== N-ABLE Branding for Apache Guacamole ===== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ---- Background ---- */
.login-ui {
    background: #0B0E14 !important;
    background-image:
        linear-gradient(rgba(248, 173, 29, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(248, 173, 29, 0.03) 1px, transparent 1px) !important;
    background-size: 60px 60px !important;
}

/* ---- Login dialog box ---- */
.login-ui .login-dialog {
    background: #12161F !important;
    border: 1px solid rgba(248, 173, 29, 0.08) !important;
    border-radius: 20px !important;
    box-shadow: none !important;
    padding: 2em !important;
    max-width: 420px !important;
}

/* Gold line at top of card */
.login-ui .login-dialog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #F8AD1D, transparent);
}

/* ---- Logo ---- */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/n-able-branding/images/logo.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 12em !important;
    height: 5em !important;
    margin: 0.5em auto 0.25em auto !important;
}

/* ---- Title text ---- */
.login-ui .login-dialog h1,
.login-ui .login-dialog .app-name {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #E8E9ED !important;
    font-size: 1.1em !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* ---- Input fields ---- */
.login-ui .login-dialog .login-fields input[type="text"],
.login-ui .login-dialog .login-fields input[type="password"],
.login-ui .login-fields input {
    background: #1A1F2B !important;
    border: 1px solid rgba(248, 173, 29, 0.12) !important;
    border-radius: 10px !important;
    color: #E8E9ED !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95em !important;
    padding: 0.8em 1em !important;
    transition: border-color 0.2s ease !important;
}

.login-ui .login-dialog .login-fields input:focus {
    border-color: #F8AD1D !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(248, 173, 29, 0.1) !important;
}

/* Placeholder / label text */
.login-ui .login-fields .labeled-field label,
.login-ui .login-fields .labeled-field.empty input {
    color: #555A66 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ---- Login button ---- */
.login-ui .login-dialog input[type="submit"],
.login-ui .login-dialog button,
.login-ui .login-dialog .submit {
    background: #F8AD1D !important;
    color: #0B0E14 !important;
    border: none !important;
    border-radius: 12px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.95em !important;
    font-weight: 700 !important;
    padding: 0.85em 2em !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.login-ui .login-dialog input[type="submit"]:hover,
.login-ui .login-dialog button:hover {
    box-shadow: 0 8px 30px rgba(248, 173, 29, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* ---- Error messages ---- */
.login-ui .login-dialog .notification .error {
    background: rgba(220, 50, 50, 0.15) !important;
    color: #ff6b6b !important;
    border: 1px solid rgba(220, 50, 50, 0.3) !important;
    border-radius: 8px !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ---- Notification / disclaimer area ---- */
.login-ui .login-dialog .disclaimer,
.login-ui .welcome {
    color: #8B8F9A !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.85em !important;
}

/* ---- Scrollbar in dark theme ---- */
.login-ui ::-webkit-scrollbar {
    width: 6px;
}
.login-ui ::-webkit-scrollbar-track {
    background: #12161F;
}
.login-ui ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
