/* RCC brand theme */
:root {
    --rcc-navy: #16283b;
    --rcc-navy-deep: #09121e;
    --rcc-blue: #2a8ed9;
    --rcc-cyan: #6fd8ff;
    --rcc-cyan-soft: rgba(111, 216, 255, 0.16);
    --rcc-white: #f4f8fc;
    --rcc-text: #dceaf8;
    --rcc-text-soft: #9fb6cb;
    --rcc-panel: rgba(7, 18, 31, 0.84);
    --rcc-panel-strong: rgba(7, 18, 31, 0.94);
    --rcc-border: rgba(111, 216, 255, 0.18);
    --rcc-shadow: 0 24px 70px rgba(2, 8, 16, 0.42);
}

input:autofill,
textarea:autofill,
select:autofill {
    background-color: transparent !important;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--rcc-white) !important;
    -webkit-box-shadow: 0 0 0 1000px #122338 inset !important;
    box-shadow: 0 0 0 1000px #122338 inset !important;
    transition: background-color 9999s ease-out 0s;
    border: none;
}

body:not(.client) {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(42, 142, 217, 0.26), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(111, 216, 255, 0.18), transparent 24%),
        radial-gradient(circle at 50% 85%, rgba(22, 40, 59, 0.34), transparent 34%),
        linear-gradient(135deg, #08111d 0%, #0f1b2c 40%, #14253a 70%, #0a1320 100%) !important;
    background-attachment: fixed;
    color: var(--rcc-text);
}

div.login-ui {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 7.75rem 1.5rem 2rem;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 18% 18%, rgba(42, 142, 217, 0.20), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(111, 216, 255, 0.16), transparent 24%),
        linear-gradient(180deg, #07101b 0%, #0d1928 55%, #09121e 100%) !important;
    overflow: hidden;
}

div.login-ui::before,
div.login-ui::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

div.login-ui::before {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.30;
    -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 80%);
            mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 80%);
}

div.login-ui::after {
    left: 50%;
    top: 50%;
    width: min(70vmin, 720px);
    height: min(70vmin, 720px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(111, 216, 255, 0.12), rgba(111, 216, 255, 0.04) 54%, transparent 70%),
        conic-gradient(
            from 0deg,
            transparent 0 72%,
            rgba(111, 216, 255, 0.02) 76%,
            rgba(111, 216, 255, 0.26) 84%,
            rgba(255, 255, 255, 0.20) 86%,
            rgba(111, 216, 255, 0.12) 90%,
            transparent 95% 100%
        );
    -webkit-mask-image: radial-gradient(circle, transparent 0 34%, #000 38%, #000 68%, transparent 72%);
            mask-image: radial-gradient(circle, transparent 0 34%, #000 38%, #000 68%, transparent 72%);
    animation: rcc-radar 10s linear infinite;
    opacity: 0.9;
}

@keyframes rcc-radar {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.navigation {
    position: fixed;
    left: 1rem;
    top: 1rem;
    right: 1rem;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 82px;
    padding: 0.9rem 1.35rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(8, 17, 29, 0.88) 0%, rgba(19, 37, 57, 0.72) 100%) !important;
    border: 1px solid rgba(111, 216, 255, 0.12);
    box-shadow: 0 16px 40px rgba(3, 10, 18, 0.30);
    backdrop-filter: blur(12px);
}

.rcc-brand-chip {
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    color: var(--rcc-cyan);
    background: rgba(111, 216, 255, 0.08);
    border: 1px solid rgba(111, 216, 255, 0.16);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.navigation a {
    color: var(--rcc-white) !important;
    text-decoration: none;
}

.hlogo {
    width: 198px;
    height: 54px;
    background: url(app/ext/geek2gether/images/logotipo.svg) no-repeat left center / contain;
    font-size: 0;
    line-height: 0;
    filter: drop-shadow(0 0 12px rgba(111, 216, 255, 0.14));
}

.login-ui .login-dialog {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, rgba(10, 20, 33, 0.94), rgba(7, 15, 26, 0.96)) !important;
    width: min(100%, 26rem);
    max-width: 26rem;
    margin: 0 auto !important;
    border: 1px solid var(--rcc-border);
    border-radius: 24px;
    box-shadow: var(--rcc-shadow);
    padding: 1.8rem 1.6rem 1.4rem;
}

.login-ui .login-dialog .logo {
    display: block;
    margin: 0.25rem auto 0.8rem;
    width: 12rem;
    height: 4.8rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(app/ext/geek2gether/images/logotipo.svg);
    border-radius: 0;
}

.login-ui .login-dialog .version .app-name {
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    color: var(--rcc-white);
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
}

.fields input,
input[name="username"],
input[name="password"],
input[name="guac-totp"],
input[ng-model="searchString"] {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--rcc-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 12px !important;
}

.fields input:focus {
    background: rgba(255, 255, 255, 0.10) !important;
    border: 1px solid rgba(111, 216, 255, 0.46) !important;
    box-shadow: 0 0 0 4px rgba(111, 216, 255, 0.10);
}

.ng-valid input {
    color: var(--rcc-white) !important;
}

a.button,
button,
input[type=submit] {
    background: linear-gradient(135deg, #7be1ff 0%, #2a8ed9 58%, #1a5f97 100%) !important;
    color: #06121d !important;
    border: none !important;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 16px 30px rgba(17, 80, 132, 0.26);
}

.login {
    border-radius: 999px;
    background: linear-gradient(135deg, #7be1ff 0%, #2a8ed9 58%, #1a5f97 100%) !important;
    color: #06121d !important;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 34px rgba(17, 80, 132, 0.34);
    cursor: pointer;
}

.login-ui.error p.login-error {
    display: block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 94px;
    right: auto;
    width: min(30rem, 92vw);
    padding: 0.9rem 1rem;
    margin: 0;
    background: rgba(19, 63, 96, 0.92);
    border: 1px solid rgba(111, 216, 255, 0.22);
    border-radius: 14px;
    text-align: center;
    color: var(--rcc-white);
    z-index: 30;
}

.header {
    background: linear-gradient(180deg, #101f31 0%, #0a1522 100%) !important;
    color: var(--rcc-white) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.page-tabs .page-list li a[href],
.menu-title.ng-binding,
.ng-binding,
td.ng-scope {
    color: var(--rcc-text) !important;
}

.page-tabs .page-list li a[href].current {
    background: linear-gradient(135deg, rgba(111, 216, 255, 0.20), rgba(42, 142, 217, 0.16)) !important;
    color: var(--rcc-white) !important;
    border-radius: 999px;
}

.page-tabs .page-list li a[href]:hover {
    background: rgba(111, 216, 255, 0.10) !important;
    color: var(--rcc-white) !important;
}

.menu-dropdown,
.page-list-level li .menu-dropdown,
.menu-dropdown .ng-isolate-scope .open {
    background: #122338 !important;
    border: 1px solid rgba(111, 216, 255, 0.10);
}

.user-menu {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--rcc-white) !important;
    border-radius: 999px;
}

.user-menu:hover {
    background: rgba(111, 216, 255, 0.12) !important;
    color: var(--rcc-white) !important;
}

.recent-connections,
.all-connections {
    background: linear-gradient(160deg, rgba(16, 31, 49, 0.84), rgba(10, 21, 34, 0.82)) !important;
    border: 1px solid rgba(111, 216, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(4, 10, 18, 0.18);
}

.all-connections {
    width: min(74vw, 1080px);
    display: block;
    margin: 1.1rem auto !important;
    padding: 14px !important;
}

.caption,
.connection.ng-scope {
    background: linear-gradient(180deg, rgba(21, 41, 64, 0.94), rgba(12, 24, 39, 0.92));
    border: 1px solid rgba(111, 216, 255, 0.08);
    box-shadow: 0 14px 26px rgba(3, 10, 18, 0.16);
    border-radius: 12px;
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.list-item .name,
.recent-connections .connection .name,
.connection a,
.connection-group a,
.user a,
.user-group a {
    color: var(--rcc-white) !important;
    font-weight: 600;
}

.list-item:not(.selected) .caption:hover,
.list-item .caption:nth-child(even):hover,
.list-item .caption:nth-child(odd):hover,
.recent-connections .connection:hover,
.connection.ng-scope:nth-child(even):hover,
.connection.ng-scope:nth-child(odd):hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(28, 60, 92, 0.96), rgba(16, 31, 49, 0.94)) !important;
    box-shadow: 0 18px 30px rgba(6, 16, 28, 0.22);
}

.list-item:not(.selected) .caption:hover {
    border: 1px solid rgba(111, 216, 255, 0.16) !important;
}

input[ng-model="searchString"] {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--rcc-white) !important;
}

@media (max-width: 720px) {
    div.login-ui {
        padding: 6.6rem 1rem 1.5rem;
    }

    .navigation {
        min-height: 72px;
        padding: 0.75rem 1rem;
    }

    .rcc-brand-chip {
        display: none;
    }

    .hlogo {
        width: 150px;
        height: 42px;
    }

    .all-connections {
        width: calc(100vw - 1.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    div.login-ui::after {
        animation: none;
    }
}
/*
 * 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;

}
