/*
 * 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}/* Leavitt Remote Desktop: Guacamole 1.6.0 */
html body div.login-ui {
    background: #15467a;
    font-family: Arial, Helvetica, sans-serif;
}
.login-ui .login-dialog {
    box-sizing: border-box;
    width: 430px;
    max-width: calc(100vw - 32px);
    padding: 32px;
    background: #ffffff;
    color: #666b70;
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
}
.login-ui .login-dialog .logo {
    display: block;
    width: 100%;
    max-width: 340px;
    height: 76px;
    margin: 0 auto 20px;
    background-image: url('app/ext/leavitt-branding/images/logo.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.login-ui .login-dialog .app-name {
    color: #15467a;
    font-size: 1.25em;
    font-weight: 600;
    text-transform: none;
    line-height: 1.4;
    margin-bottom: 24px;
}
.login-ui .login-dialog .login-fields input {
    box-sizing: border-box;
    border: 1px solid #92979c;
    border-radius: 5px;
    background: #ffffff;
    color: #242a30;
    padding: 10px 12px;
    font-family: inherit;
}
.login-ui .login-dialog .login-fields input:focus {
    outline: 2px solid #15467a;
    outline-offset: 2px;
}
.login-ui .login-dialog input[type="submit"],
.login-ui .login-dialog button[type="submit"] {
    background: #15467a;
    border: 1px solid #15467a;
    border-radius: 5px;
    color: #ffffff;
    padding: 11px 16px;
    font-weight: 600;
    cursor: pointer;
}
.login-ui .login-dialog input[type="submit"]:hover,
.login-ui .login-dialog button[type="submit"]:hover {
    background: #10375f;
}
.login-ui .login-dialog input[type="submit"]:focus-visible,
.login-ui .login-dialog button[type="submit"]:focus-visible {
    outline: 2px solid #15467a;
    outline-offset: 3px;
}
.login-ui .login-dialog .version { color: #666b70; }
@media (max-width: 480px) {
    .login-ui .login-dialog { padding: 24px; }
    .login-ui .login-dialog .logo { height: 60px; }
}

/* Original Leavitt building photograph; cover crops to fit the viewport. */
html body div.login-ui {
    background-color: #15467a;
    background-image: url('app/ext/leavitt-branding/images/background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Keep the application title in the browser tab, hide only the login heading. */
html body div.login-ui .login-dialog .version .app-name {
    display: none;
}
