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

}
/* IT Shaman / Help-portal palette for Guacamole */
:root {
  --its-bg: #0a0c10;
  --its-surface: #111318;
  --its-border: #1e2230;
  --its-accent: #3b82f6;
  --its-accent-dim: rgba(59, 130, 246, 0.15);
  --its-text: #e2e8f0;
  --its-text-dim: #64748b;
}

/* Login page */
div.login-ui {
  background: var(--its-bg) !important;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%) !important;
  color: var(--its-text);
}

.login-ui .login-dialog {
  background: var(--its-surface);
  border: 1px solid var(--its-border);
  border-radius: 16px;
  padding: 1.5em 1.25em 1.25em !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.login-ui .login-dialog .logo {
  display: block;
  margin: 0.25em auto 0.35em !important;
  width: 7em !important;
  height: 7em !important;
  background-image: url("app/ext/it-shaman/images/logo.png") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: transparent !important;
}

/* Two-line brand under logo */
.its-brand-lines {
  text-align: center;
  margin: 0 0 0.9em;
  line-height: 1.25;
}

.its-brand-lines .its-line-rdp {
  color: var(--its-text-dim);
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.its-brand-lines .its-line-brand {
  color: var(--its-text);
  font-size: 1.35em;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.15em;
}

/* Hide default single APP.NAME / version on login card */
.login-ui .login-dialog .version {
  display: none !important;
}

.login-ui .login-dialog th,
.login-ui .login-dialog label,
.login-ui .login-fields .labeled-field .field-header {
  color: var(--its-text-dim) !important;
  text-shadow: none !important;
}

.login-ui .login-dialog .login-fields input,
.login-ui .login-fields .labeled-field input {
  background: var(--its-bg) !important;
  border: 1px solid var(--its-border) !important;
  border-radius: 8px !important;
  color: var(--its-text) !important;
  box-shadow: none !important;
}

.login-ui .login-fields .labeled-field input:focus,
.login-ui .login-dialog .login-fields input:focus {
  border-color: var(--its-accent) !important;
  outline: none !important;
}

.login-ui .login-dialog .buttons input[type="submit"],
.login-ui .login-dialog .buttons input.login,
.login-ui .buttons input[type="submit"] {
  background: var(--its-accent) !important;
  border: none !important;
  border-radius: 8px !important;
  color: #fff !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.login-ui .login-dialog .buttons input[type="submit"]:hover,
.login-ui .buttons input[type="submit"]:hover {
  filter: brightness(1.08);
}

.login-ui.error p.login-error {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  color: #fca5a5 !important;
}

body {
  background: var(--its-bg);
}

#content,
.menu,
.header,
.user-menu {
  color: var(--its-text);
}

.list-item .caption,
.header h2,
.menu-header {
  color: var(--its-text);
}

button,
input[type="submit"],
.button,
a.button {
  border-radius: 8px;
}

button.logout,
.button.logout,
input.logout {
  background: var(--its-surface);
  border: 1px solid var(--its-border);
  color: var(--its-text);
}
