/* A&L Electric Systems: Guacamole login theme, Version 1.6.x.
   Nur die Login-Oberfläche wird angepasst; die Authentifizierung bleibt unverändert.
   Das SVG-Logo wird lokal aus dieser Erweiterung ausgeliefert. */
.login-ui {
    box-sizing: border-box;
    position: relative !important;
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    margin: 0;
    padding: 26px 20px 23px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #20354a;
    background: radial-gradient(ellipse at 50% 5%, #173e54 0%, transparent 62%),
                linear-gradient(140deg, #0b2638 0%, #071726 100%) !important;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.login-ui::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .33;
    background-image: linear-gradient(to right, rgba(161,197,220,.12) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(161,197,220,.12) 1px, transparent 1px);
    background-size: 68px 68px;
}
.login-ui .login-dialog-middle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 28px 0;
    text-align: left;
    vertical-align: initial;
}
.login-ui .login-dialog.notification,
.login-ui.continuation .login-dialog.notification {
    display: block;
    box-sizing: border-box;
    width: min(100%, 458px);
    max-width: 458px;
    min-width: 0;
    margin: 0;
    padding: 36px 40px 33px;
    overflow: visible;
    background: #fff;
    color: #20354a;
    border: 1px solid rgba(188,208,222,.65);
    border-top: 4px solid #0b7aaf;
    border-radius: 12px;
    box-shadow: 0 22px 70px rgba(0,9,25,.3);
    text-align: left;
    font-size: 16px;
}
.login-ui .login-dialog .login-form { margin: 0; padding: 0; }
.login-ui .login-dialog .aes-official-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(238px, 100%);
    height: auto;
    aspect-ratio: 725.18555 / 429.45;
    margin: 0 auto 19px;
}
.login-ui .login-dialog .aes-official-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    color: #244057;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
}
.login-ui .login-dialog .version { margin: 0 0 27px; padding: 0; }
.login-ui .login-dialog .version .app-name {
    margin: 0;
    padding: 0;
    color: #20354a;
    font: 700 23px/1.3 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    text-transform: none;
    letter-spacing: -.02em;
    text-align: center;
}
.login-ui .login-dialog .version .version-number { display: none !important; }
.login-ui .login-dialog .login-fields { margin: 0; }
.login-ui .login-fields .labeled-field,
.login-ui .login-fields .form-field { box-sizing: border-box; }
.login-ui .login-fields .labeled-field {
    background: #f6f8fa;
    border-radius: 8px;
    margin: 0 0 13px;
}
.login-ui .login-dialog .login-fields input,
.login-ui .login-dialog .login-fields select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    height: 50px;
    border: 1px solid #d4dfe7;
    border-radius: 8px;
    color: #23394d;
    background: #f6f8fa;
    box-shadow: none;
    font: 500 15px/1.4 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    transition: border-color .15s, box-shadow .15s;
}
.login-ui .login-fields .labeled-field.empty input { background: transparent; }
.login-ui .login-fields .labeled-field.empty .field-header {
    color: #657c8c;
    opacity: 1;
    font-size: 14px;
    margin: 15px 14px;
    line-height: 20px;
}
.login-ui .login-fields .labeled-field:not(.empty) .field-header { display: none; }
.login-ui .login-fields input:focus,
.login-ui .login-fields select:focus {
    outline: none;
    border-color: #1385ba;
    box-shadow: 0 0 0 3px rgba(19,133,186,.16);
    background: #fff;
}
.login-ui .login-dialog .buttons { margin: 23px 0 0; text-align: left; }
.login-ui .login-dialog .buttons input[type="submit"] {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 49px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid #07699f;
    border-radius: 7px;
    background: #0874aa;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
    font: 700 15px/1.35 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
    transition: background-color .15s;
}
.login-ui .login-dialog .buttons input[type="submit"]:hover:not(:disabled) { background: #065e8e; }
.login-ui .login-dialog .buttons input[type="submit"]:focus-visible {
    outline: 3px solid #78c6ec;
    outline-offset: 2px;
}
.login-ui .login-dialog .buttons input[type="submit"]:disabled { opacity: .65; cursor: wait; }
.login-ui .aes-logout-hint {
    display: block;
    margin: 17px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #e4ebf0;
    color: #64788a;
    font: 400 12.5px/1.65 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    text-align: left;
    overflow-wrap: break-word;
}
.login-ui .aes-company-footer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    padding: 7px 0 0;
    margin: 0;
    text-align: center;
}
.login-ui .aes-company-footer a {
    color: #afc9db;
    text-decoration: none;
    font: 500 12px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: .01em;
}
.login-ui .aes-company-footer a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.login-ui .aes-company-footer a:focus-visible { outline: 2px solid #92d8ff; outline-offset: 4px; }
.login-ui.error p.login-error {
    box-sizing: border-box;
    position: absolute;
    top: 16px;
    left: 50%;
    right: auto;
    z-index: 80;
    width: min(500px, calc(100% - 36px));
    transform: translateX(-50%);
    margin: 0;
    padding: 13px 16px;
    border: 1px solid #e7adb4;
    border-radius: 8px;
    background: #fff4f5;
    color: #8c2432;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    font: 600 13px/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.login-ui.continuation .aes-official-logo,
.login-ui.continuation .login-dialog .version,
.login-ui.continuation .aes-logout-hint { display: none; }
@media (max-width: 520px) {
    .login-ui { padding: 14px 15px 18px; }
    .login-ui .login-dialog-middle { padding: 18px 0; }
    .login-ui .login-dialog.notification,
    .login-ui.continuation .login-dialog.notification { padding: 30px 25px 27px; }
    .login-ui .login-dialog .aes-official-logo { width: min(215px,100%); margin-bottom: 16px; }
    .login-ui .login-dialog .version { margin-bottom: 23px; }
    .login-ui .aes-logout-hint { font-size: 12px; }
}
@media (max-width: 340px) {
    .login-ui { padding: 12px 9px 16px; }
    .login-ui .login-dialog.notification { padding: 27px 19px 23px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-ui, .login-ui * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* Guacamole renders two submit buttons, but only one is relevant per step.
 * Preserve native initial/continuation visibility after our generic button
 * rule, which otherwise forces both buttons to display simultaneously. */
.login-ui.initial .login-dialog .buttons input.continue-login {
    display: none;
}
.login-ui.continuation .login-dialog .buttons input.login {
    display: 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;

}
