/*
 * BC Desktop — Guacamole branding theme
 *
 * Brand palette (official):
 *   Primary  #AC1E54   magenta — CTAs, primary buttons, links
 *   Accent   #10CEC7   teal    — highlights, focus rings, hover states
 *   Text     #404040   dark gray — body copy, labels
 *   Border   #D0D0D0   light gray — input borders, dividers
 *
 *   Derived:
 *   --bc-primary-dk:  #8A1844   (hover for magenta)
 *   --bc-accent-dk:   #0BA8A2   (hover for teal)
 *   --bc-bg:          #F7F7F7   (page background)
 *   --bc-card:        #FFFFFF   (login card)
 *   --bc-dark:        #1A1A1A   (top bar)
 */

/* ============================================================
 *  Login page background
 *  Soft teal-to-white gradient with a dark base band.
 * ============================================================ */
html, body {
    height: 100%;
    margin: 0;
}

body {
    background-color: #FFFFFF;
    background-image: url('app/ext/bc-desktop/images/background.png');
    background-repeat: repeat;
    background-size: 1200px auto;
    background-position: top left;
    background-attachment: fixed;
    color: #404040;
}

.login-ui {
    background: transparent !important;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
 *  Login dialog card
 * ============================================================ */
.login-ui .login-dialog {
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 2.5em 2em;
    max-width: 420px;
    width: 90%;
    color: #404040;
}

/* Replace the default Guacamole logo on the login card. */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/bc-desktop/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 1em auto;
}

/* Title under the logo (the "APACHE GUACAMOLE" / "BC Desktop" text) */
.login-ui .login-dialog h1,
.login-ui .login-dialog .title {
    color: #404040;
    font-weight: 700;
    font-size: 1.4em;
    text-align: center;
    margin: 0.25em 0 1.25em 0;
    letter-spacing: 0.02em;
}

/* ============================================================
 *  Form fields
 * ============================================================ */
.login-ui .login-dialog .login-fields {
    margin-top: 0.5em;
}

.login-ui .login-dialog input[type="text"],
.login-ui .login-dialog input[type="password"],
.login-ui .login-dialog input[type="email"] {
    background-color: #FFFFFF;
    border: 1px solid #D0D0D0;
    border-radius: 8px;
    padding: 0.75em 1em;
    color: #404040;
    font-size: 0.95em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.75em;
}

.login-ui .login-dialog input[type="text"]:focus,
.login-ui .login-dialog input[type="password"]:focus,
.login-ui .login-dialog input[type="email"]:focus {
    border-color: #10CEC7;
    box-shadow: 0 0 0 3px rgba(16, 206, 199, 0.20);
    outline: none;
}

/* Labels */
.login-ui .login-dialog label {
    color: #404040;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 0.35em;
    display: block;
}

/* ============================================================
 *  Login button — BC magenta (primary)
 * ============================================================ */
.login-ui .login-dialog .buttons input[type="submit"],
.login-ui .login-dialog input[type="submit"] {
    background-color: #AC1E54;
    background-image: none;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1em;
    padding: 0.8em 1.5em;
    width: 100%;
    cursor: pointer;
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(172, 30, 84, 0.25);
    transition: background-color 0.15s ease, transform 0.05s ease;
    margin-top: 0.5em;
}

.login-ui .login-dialog .buttons input[type="submit"]:hover {
    background-color: #8A1844;
}

.login-ui .login-dialog .buttons input[type="submit"]:active {
    transform: translateY(1px);
}

/* Links inside the login card (e.g. forgot password) */
.login-ui .login-dialog a {
    color: #AC1E54;
    text-decoration: none;
    font-weight: 600;
}
.login-ui .login-dialog a:hover {
    color: #8A1844;
    text-decoration: underline;
}

/* ============================================================
 *  Error / status messages
 * ============================================================ */
.login-ui .login-dialog .login-error,
.login-ui .login-dialog .error {
    background-color: #FDECF2;
    border-left: 3px solid #AC1E54;
    color: #7A1438;
    padding: 0.6em 0.9em;
    border-radius: 6px;
    margin-bottom: 1em;
}

/* ============================================================
 *  Top navigation bar (after login)
 * ============================================================ */
.page-header,
.top-bar,
.header {
    background-color: #1A1A1A !important;
    border-bottom: 3px solid #10CEC7;
}

.page-header .title,
.page-header a,
.top-bar a {
    color: #FFFFFF !important;
}

.page-header .title:hover,
.top-bar a:hover {
    color: #10CEC7 !important;
}

/* ============================================================
 *  Buttons throughout the app
 * ============================================================ */
button.primary,
.button.primary,
input[type="submit"].primary {
    background-color: #AC1E54;
    background-image: none;
    border: 1px solid #8A1844;
    color: #FFFFFF;
    border-radius: 6px;
}
button.primary:hover,
.button.primary:hover {
    background-color: #8A1844;
}

/* Secondary / accent button */
button.secondary,
.button.secondary {
    background-color: #10CEC7;
    background-image: none;
    border: 1px solid #0BA8A2;
    color: #FFFFFF;
    border-radius: 6px;
}
button.secondary:hover,
.button.secondary:hover {
    background-color: #0BA8A2;
}

/* Generic button */
button,
.button,
input[type="button"] {
    border-radius: 6px;
    border: 1px solid #D0D0D0;
    color: #404040;
}

/* Danger / destructive */
button.danger,
.button.danger {
    background-color: #AC1E54;
    border-color: #8A1844;
    color: #FFFFFF;
}

/* ============================================================
 *  Body text / general
 * ============================================================ */
body, .main {
    color: #404040;
}

a {
    color: #AC1E54;
}
a:hover {
    color: #8A1844;
}

/* Dividers / table borders */
hr, .divider {
    border-color: #D0D0D0;
}
table, th, td {
    border-color: #D0D0D0;
}

/* ============================================================
 *  Connection tiles on home page
 * ============================================================ */
.home .recent-connections .connection,
.connection-group .children .connection {
    border-radius: 8px;
    border: 1px solid #D0D0D0;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.home .recent-connections .connection:hover,
.connection-group .children .connection:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 206, 199, 0.20);
    border-color: #10CEC7;
}

/* ============================================================
 *  Scrollbars (WebKit / Chromium)
 * ============================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-thumb {
    background: #10CEC7;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0BA8A2;
}
::-webkit-scrollbar-track {
    background: #F0F0F0;
}

/* Text selection highlight */
::selection {
    background-color: #10CEC7;
    color: #FFFFFF;
}
/*
 * 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;

}
