/*
 * 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-Schulungen.com – Guacamole Login Branding (FINAL)
   - Logo an Original-Position
   - "APACHE GUACAMOLE" sauber UNTER dem Logo
   - KEIN Overlay
   - CI-Farben
   - Guacamole 1.6.x kompatibel
   ============================================================ */

/* ================= CI Farben ================= */
:root {
  --its-blue:  #2f5f8f;
  --its-blue2: #1f4f7f;
}

/* ================= Hintergrund (OHNE Overlay) ================= */
.login-ui {
  background-image: url("/guacamole/app/ext/it-schulungen/images/bg.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* ================= Login-Box ================= */
.login-ui .login-dialog {
  position: relative;
  z-index: 1;

  border-radius: 10px !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 10px 35px rgba(0,0,0,.08) !important;
}

/* ============================================================
   ORIGINALEN Guacamole-Titel KOMPLETT entfernen
   (verhindert Überlappungen)
   ============================================================ */
.login-ui .login-dialog h1,
.login-ui .login-dialog h2,
.login-ui .login-dialog .title,
.login-ui .login-dialog .header {
  display: none !important;
}

/* ============================================================
   Logo + Text als EINE saubere Einheit
   ============================================================ */
.login-ui .login-dialog .logo {
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;

  width: 360px !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;

  background: none !important;
}

/* ===== Logo ===== */
.login-ui .login-dialog .logo::before {
  content: "";
  display: block;

  width: 360px;
  height: 110px;

  background-image: url("/guacamole/app/ext/it-schulungen/images/it-schulungen-logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ===== Text UNTER dem Logo ===== */
.login-ui .login-dialog .logo::after {
  content: "APACHE GUACAMOLE";
  display: block;

  margin-top: 12px;

  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #000;
  text-align: center;
}

/* ============================================================
   Inputs & Button im CI-Stil
   ============================================================ */
.login-ui input:focus {
  border-color: var(--its-blue) !important;
  box-shadow: 0 0 0 3px rgba(47,95,143,.20) !important;
}

.login-ui button,
.login-ui input[type="submit"] {
  background: var(--its-blue) !important;
  border: 1px solid var(--its-blue) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

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

/* ================= Versions-Badge ausblenden ================= */
.login-ui .version {
  display: none !important;
}
