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

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
/* AEGIS2 Branding — Harbor palette (per _CANON/brand/STD_palette_options.md)
 * Applies to Apache Guacamole 1.6.0 web UI
 *
 * Tokens:
 *   --aegis-deep:   #2e5c8a   primary blue, banner/heading, key accents
 *   --aegis-mid:    #5783b0   secondary blue, hover/active
 *   --aegis-bright: #6798c9   link / interactive highlight
 *   --aegis-stone:  #3f4a58   cool gray, body text on light
 *   --aegis-mortar: #f5f7fa   page background
 *   --aegis-card:   #ffffff   panel/card background
 *   --aegis-line:   #8d99a8   borders, dividers
 *   --aegis-accent: #2a7a6f   teal accent (used sparingly)
 */

:root {
    --aegis-deep:   #2e5c8a;
    --aegis-mid:    #5783b0;
    --aegis-bright: #6798c9;
    --aegis-stone:  #3f4a58;
    --aegis-mortar: #f5f7fa;
    --aegis-card:   #ffffff;
    --aegis-line:   #8d99a8;
    --aegis-accent: #2a7a6f;
}

/* ---- Global page chrome ---- */
body, html, .view {
    background-color: var(--aegis-mortar) !important;
    color: var(--aegis-stone);
}

/* ---- Login screen ---- */
.login-ui {
    background-color: var(--aegis-deep) !important;
    background-image: linear-gradient(160deg, var(--aegis-deep) 0%, #1f4060 100%);
}

.login-ui .login-dialog {
    background-color: var(--aegis-card);
    border: 1px solid var(--aegis-line);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(46, 92, 138, 0.25);
}

/* Replace the default Guacamole logo with AEGIS text mark */
.login-ui .logo {
    background-image: none !important;
    background-color: var(--aegis-deep);
    height: auto !important;
    width: auto !important;
    padding: 12px 20px;
    margin: 0 auto 1em;
    border-radius: 4px;
    text-align: center;
}

.login-ui .logo::before {
    content: "AEGIS2";
    color: var(--aegis-card);
    font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* Hide the default Apache Guacamole heading */
.login-ui h1, .login-ui .login-dialog h1 {
    display: none !important;
}

/* Buttons */
.login-ui input[type=submit],
button.primary,
.button.primary {
    background-color: var(--aegis-deep) !important;
    border-color: var(--aegis-deep) !important;
    color: var(--aegis-card) !important;
    border-radius: 3px;
    font-weight: 500;
}

.login-ui input[type=submit]:hover,
button.primary:hover {
    background-color: var(--aegis-mid) !important;
    border-color: var(--aegis-mid) !important;
}

/* ---- Top navigation bar after login ---- */
.menu, .header, .top-bar, #header-logo, .header-logo {
    background-color: var(--aegis-deep) !important;
    color: var(--aegis-card);
}

.menu a, .header a, .top-bar a {
    color: var(--aegis-card) !important;
}

.menu a:hover, .header a:hover, .top-bar a:hover {
    background-color: var(--aegis-mid) !important;
}

/* Top-bar logo: replace default with AEGIS2 wordmark */
.header-logo, #header-logo, .top-bar .logo {
    background-image: none !important;
}

.header-logo::before, #header-logo::before, .top-bar .logo::before {
    content: "AEGIS2";
    color: var(--aegis-card);
    font-family: "Source Serif 4", "Source Serif Pro", Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0 12px;
    display: inline-block;
    line-height: 40px;
}

/* ---- Home/connection list ---- */
.connection-group, .home-connection {
    background-color: var(--aegis-card);
    border: 1px solid var(--aegis-line);
}

.connection-group:hover, .home-connection:hover {
    border-color: var(--aegis-mid);
    box-shadow: 0 2px 8px rgba(46, 92, 138, 0.15);
}

/* Active/selected items */
.active, .selected {
    background-color: var(--aegis-mid) !important;
    color: var(--aegis-card);
}

/* Links */
a, .link {
    color: var(--aegis-bright);
}

a:hover {
    color: var(--aegis-deep);
}

/* ---- SSO providers section (added by openid extension) ---- */
.sso-providers {
    margin-top: 1em;
    text-align: center;
}

.sso-provider a {
    display: inline-block;
    background-color: var(--aegis-deep);
    color: var(--aegis-card);
    padding: 10px 20px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
}

.sso-provider a:hover {
    background-color: var(--aegis-mid);
    color: var(--aegis-card);
}

/* ---- Form inputs ---- */
input[type=text], input[type=password], input[type=email], textarea {
    border: 1px solid var(--aegis-line);
    border-radius: 3px;
    padding: 8px 10px;
}

input[type=text]:focus, input[type=password]:focus,
input[type=email]:focus, textarea:focus {
    border-color: var(--aegis-mid);
    outline: none;
    box-shadow: 0 0 0 2px rgba(87, 131, 176, 0.25);
}

/* ---- Notification / error / status ---- */
.notification.error, .notification-error {
    background-color: #b94a48;
    color: var(--aegis-card);
    border-color: #953b3a;
}

.notification.warning, .notification-warning {
    background-color: #b07a2e;
    color: var(--aegis-card);
}

.notification.info, .notification-info {
    background-color: var(--aegis-accent);
    color: var(--aegis-card);
}
/*
 * 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;

}
