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

}
.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}/*
 * PARMELTEC Branding fuer Apache Guacamole
 *
 * Farben nach parmeltec.ch:
 *   #232b3b  Primaer (Dunkelblau)
 *   #424e6a  Primaer hell (Hover)
 *   #0f1d3a  Verlauf dunkel
 *   #768cbe  Akzent
 *   #7e8aa4  Grau (Sekundaertext)
 */

@font-face {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("app/ext/parmeltec-branding/fonts/open-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("app/ext/parmeltec-branding/fonts/open-sans-600.woff2") format("woff2");
}

/* ------------------------------------------------------------------ */
/* Login-Seite                                                        */
/* ------------------------------------------------------------------ */

div.login-ui {
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #0f1d3a 0%, #232b3b 55%, #424e6a 100%);
}

/* Fusszeile */
div.login-ui::after {
  content: "\00A9  PARMELTEC GmbH";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1em;
  text-align: center;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

/* Dialog */
div.login-ui .login-dialog-middle .login-dialog {
  max-width: 17em;
  padding: 1.6em 1.6em 1.4em;
  background: #fff;
  border: none;
  border-top: 5px solid #768cbe;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  color: #232b3b;
  font-size: 1.15em;
}

/* Logo */
div.login-ui .login-dialog-middle .login-dialog .logo {
  width: 100%;
  height: 4.2em;
  margin: 0 auto 0.6em;
  background-image: url("app/ext/parmeltec-branding/images/logo.png");
  background-size: contain;
  -moz-background-size: contain;
  -webkit-background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* App-Name + Slogan */
div.login-ui .login-dialog-middle .login-dialog .version {
  position: static;
  padding: 0 0 1em;
  text-align: center;
}

div.login-ui .login-dialog-middle .login-dialog .version .app-name {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: #232b3b;
}

div.login-ui .login-dialog-middle .login-dialog .version .app-name::after {
  content: "F\00FC r eine saubere Sache Strom";
  display: block;
  margin-top: 0.15em;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0;
  color: #7e8aa4;
}

div.login-ui .login-dialog-middle .login-dialog .version .version-number {
  display: none;
}

/* Eingabefelder (Beschriftung liegt als Platzhalter hinter dem leeren Feld) */
div.login-ui .login-fields .labeled-field {
  margin: 0.45em 0;
}

div.login-ui .login-fields .labeled-field .form-field,
div.login-ui .login-fields .labeled-field .text-field,
div.login-ui .login-fields .labeled-field .password-field {
  display: block;
  width: 100%;
  max-width: none;
}

div.login-ui .login-fields .labeled-field .field-header {
  margin: 0;
  padding: 0.62em 0.8em;
  font-size: 0.85em;
  line-height: 1.2;
  color: #7e8aa4;
  opacity: 1;
}

div.login-ui .login-fields .labeled-field input[type="text"],
div.login-ui .login-fields .labeled-field input[type="password"],
div.login-ui .login-fields .labeled-field input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.62em 0.8em;
  border: 1px solid #cfd6e4;
  border-radius: 6px;
  background: #fff;
  font-family: inherit;
  font-size: 0.85em;
  line-height: 1.2;
  color: #232b3b;
  box-shadow: none;
}

div.login-ui .login-fields .labeled-field.empty input {
  background: transparent;
}

div.login-ui .login-fields .labeled-field input:focus {
  outline: none;
  border-color: #768cbe;
  box-shadow: 0 0 0 3px rgba(118, 140, 190, 0.25);
  background: #fff;
}

/* Anmelde-Button */
div.login-ui .login-dialog-middle .login-dialog .buttons {
  margin-top: 1em;
  text-align: center;
}

div.login-ui .login-dialog-middle .login-dialog .buttons input[type="submit"] {
  width: 100%;
  margin: 0;
  padding: 0.65em;
  border: none;
  border-radius: 6px;
  background: #232b3b;
  color: #fff;
  font-family: inherit;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}

div.login-ui .login-dialog-middle .login-dialog .buttons input[type="submit"]:hover {
  background: #424e6a;
}

div.login-ui .login-dialog-middle .login-dialog .buttons input[type="submit"]:disabled {
  background: #7e8aa4;
  opacity: 1;
}

/* Fehlermeldung oben */
div.login-ui.error p.login-error {
  margin: 0.6em;
  border: none;
  border-radius: 6px;
  background: #fdecec;
  color: #8a2c2c;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Zweiter Schritt (z. B. TOTP-Code): Dialog bleibt als Karte mit Logo sichtbar */
div.login-ui.continuation .login-dialog-middle .login-dialog .logo {
  display: block;
}

div.login-ui.continuation .login-dialog-middle .login-dialog {
  max-width: 17em;
  border-top: 5px solid #768cbe;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------------ */
/* Dezente Akzente in der restlichen Oberflaeche                      */
/* ------------------------------------------------------------------ */

body {
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

input[type="submit"],
button,
a.button {
  font-family: "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #232b3b;
}

input[type="submit"]:hover,
button:hover,
a.button:hover {
  background-color: #424e6a;
}
