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

}
.restrictionList{border:0}button.restrictionListButton{font-size:.75em}img.restrictionListHeader{width:.75em;height:.75em}img.restrictionListItem{width:1em;height:1em}.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}/*
 * Softlare Workspace — Guacamole 1.6.0 login screen branding
 * Colors: navy #202757 (logo), accent #0a84ff, cyan #27c0e8, ink #0b1120, muted #5d6884
 * Images of this extension are served at app/ext/softlare-branding/...
 */

/* Page background */
div.login-ui {
    background:
        radial-gradient(1100px 600px at 90% -10%, rgba(39, 192, 232, 0.30), transparent 60%),
        radial-gradient(900px 520px at -10% 110%, rgba(10, 132, 255, 0.28), transparent 60%),
        linear-gradient(160deg, #202757 0%, #151b40 55%, #0b1120 100%);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

.login-ui .login-dialog-middle {
    padding: 1.5em 1em;
}

/* Card */
.login-ui .login-dialog,
.login-ui.continuation .login-dialog {
    background: #ffffff;
    color: #0b1120;
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(4, 8, 28, 0.45), 0 2px 6px rgba(4, 8, 28, 0.25);
    font-size: 1.05em;
}

.login-ui .login-dialog {
    max-width: 380px;
    padding: 2.25em 2em 1.75em;
    box-sizing: border-box;
}

.login-ui.continuation .login-dialog {
    max-width: 520px;
}

/* Logo (also on the 2FA / password change step) */
.login-ui .login-dialog .logo {
    width: 210px;
    height: 46px;
    margin: 0 auto 0.4em;
    background-image: url(app/ext/softlare-branding/images/softlare-logo.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -moz-background-size: contain;
    -webkit-background-size: contain;
}

.login-ui.continuation .login-dialog .logo {
    display: block;
    margin-bottom: 1.25em;
}

/* "WORKSPACE" under the logo (APP.NAME stays "Softlare Workspace" for the browser tab) */
.login-ui .login-dialog .version {
    padding: 0 0 1.4em;
}

.login-ui .login-dialog .version .app-name {
    font-size: 0;
    line-height: 0;
}

.login-ui .login-dialog .version .app-name::after {
    content: "Workspace";
    display: block;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: #5d6884;
    padding-left: 0.32em;
}

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

/* Fields */
.login-ui .login-fields .labeled-field {
    margin: 0 0 0.75em;
    border-radius: 10px;
    background: #f5f7fb;
}

.login-ui .login-dialog .login-fields input {
    margin: 0;
    padding: 0.75em 1em;
    border: 1px solid #d5dbe7;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1em;
    color: #0b1120;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-ui .login-dialog .login-fields input:focus {
    outline: none;
    border-color: #0a84ff;
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.login-ui .login-fields .labeled-field .field-header {
    margin: calc(0.75em + 1px) calc(1em + 1px);
    font-size: 1em;
    color: #5d6884;
    opacity: 0.8;
}

/* Button */
.login-ui .login-dialog .buttons {
    margin: 1.25em 0 0;
}

.login-ui .login-dialog .buttons input[type=submit] {
    background: #0a84ff;
    border: none;
    border-radius: 10px;
    padding: 0.8em 1em;
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #ffffff;
    text-shadow: none;
    box-shadow: 0 8px 18px rgba(10, 132, 255, 0.35);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.login-ui .login-dialog .buttons input[type=submit]:hover {
    background: #0066d6;
}

.login-ui .login-dialog .buttons input[type=submit]:active {
    background: #0057b8;
    box-shadow: 0 3px 8px rgba(10, 132, 255, 0.35);
}

.login-ui .login-dialog .buttons input[type=submit]:disabled {
    background: #0a84ff;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0.6;
    cursor: default;
}

/* Error banner */
.login-ui.error p.login-error {
    top: 1.25em;
    left: 50%;
    right: auto;
    width: calc(100% - 2em);
    max-width: 420px;
    box-sizing: border-box;
    margin: 0;
    transform: translateX(-50%);
    padding: 0.85em 1em;
    background: #fff1f1;
    border: 1px solid #f3b4b4;
    border-radius: 10px;
    color: #9b1c1c;
    box-shadow: 0 10px 30px rgba(4, 8, 28, 0.35);
}

/* Footer line under the card */
.login-ui .login-dialog-middle::after {
    content: "Geschützt mit 2-Faktor-Anmeldung · softlare.de";
    display: block;
    margin-top: 1.5em;
    font-size: 0.8em;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6);
}

/* 2FA enrollment (TOTP) on the white card */
.login-ui .totp-qr-code img {
    border-radius: 8px;
}

@media (max-width: 480px) {
    .login-ui .login-dialog {
        padding: 1.75em 1.25em 1.5em;
    }
    .login-ui .login-dialog .logo {
        width: 180px;
        height: 40px;
    }
}
