/*
 * 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}/* Hotel Residenz Branding v3 - Guacamole 1.6.0 */

/* Replace Guacamole logo with the supplied Hotel Residenz logo. */
.login-ui .login-dialog .logo {
    width: 10em !important;
    height: 10em !important;
    margin: 0 auto 0.8em auto !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    background-image: url('app/ext/hotel-residenz-branding/resources/images/hotel-residenz-logo.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: contain !important;
}

.login-ui .login-dialog .logo::before,
.login-ui .login-dialog .logo::after {
    display: none !important;
    content: none !important;
    box-shadow: none !important;
}

/* Keep the requested mixed-case title on one line. */
.login-ui .login-dialog .version {
    width: max-content !important;
    max-width: none !important;
    margin: 0 auto 1.25em auto !important;
    padding: 0 !important;
    text-align: center !important;
}

.login-ui .login-dialog .version .app-name {
    display: block !important;
    width: max-content !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    white-space: nowrap !important;
    text-transform: none !important;
    font-size: 1.05em !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: normal !important;
}

/* Hide Guacamole version text on the public login page. */
.login-ui .login-dialog .version .version-number {
    display: none !important;
}

/* Give the login dialog enough room for the single-line title. */
.login-ui .login-dialog {
    width: 36em !important;
    max-width: calc(100vw - 2em) !important;
}


/* Responsive Anpassung für Smartphones und kleine Tablets */
@media (max-width: 600px) {

    .login-ui .login-dialog {
        width: calc(100vw - 2em) !important;
        max-width: calc(100vw - 2em) !important;
        margin: 1em auto !important;
        padding: 1em !important;
        box-sizing: border-box !important;
    }

    .login-ui .login-dialog .logo {
        width: 7em !important;
        height: 7em !important;
        margin-bottom: 0.5em !important;
    }

    .login-ui .login-dialog .version {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1em !important;
    }

    .login-ui .login-dialog .version .app-name {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        font-size: 0.95em !important;
        line-height: 1.25 !important;
        padding: 0 0.25em !important;
        box-sizing: border-box !important;
    }

    .login-ui .login-dialog .login-fields {
        width: 100% !important;
        max-width: 100% !important;
    }

    .login-ui .login-dialog input,
    .login-ui .login-dialog button,
    .login-ui .login-dialog .button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Sehr kleine Displays */
@media (max-width: 380px) {

    .login-ui .login-dialog {
        width: calc(100vw - 1em) !important;
        max-width: calc(100vw - 1em) !important;
        margin: 0.5em auto !important;
        padding: 0.75em !important;
    }

    .login-ui .login-dialog .logo {
        width: 6em !important;
        height: 6em !important;
    }

    .login-ui .login-dialog .version .app-name {
        font-size: 0.85em !important;
    }
}
