/*
 * Modern login theme for Apache Guacamole 1.6.0.
 *
 * The resource URL is relative to the Guacamole deployment context and uses
 * the extension namespace declared in guac-manifest.json.
 */

div.login-ui {
    background-color: #174f67;
    background-image:
        linear-gradient(90deg, rgba(4, 30, 45, 0.22), rgba(4, 30, 45, 0.05)),
        url("app/ext/tempnamespace/images/login-background.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #173044;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
}

/* Keep the card above the decorative background. On wide screens the card is
 * aligned to the right to balance the artwork; narrower layouts are centered
 * below. */
.login-ui .login-dialog-middle {
    box-sizing: border-box;
    display: table-cell;
    padding: clamp(1.25rem, 6vw, 6rem);
    position: relative;
    text-align: right;
    vertical-align: middle;
    z-index: 1;
}

.login-ui .login-dialog {
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
    background: rgba(250, 253, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 1.5rem;
    box-shadow:
        0 1.5rem 4rem rgba(5, 28, 43, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    box-sizing: border-box;
    color: #173044;
    margin: 0 0 0 auto;
    max-width: 29rem;
    overflow: hidden;
    padding: 0;
    text-align: left;
    width: 100%;
}

.login-ui .login-form {
    box-sizing: border-box;
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.login-ui .login-dialog .logo {
    background-image: url("app/ext/tempnamespace/images/telbit-logo.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 0.5rem 0.7rem rgba(8, 47, 68, 0.16));
    height: 4.75rem;
    margin: 0 auto 1.25rem;
    max-width: 100%;
    width: 18rem;
}

.login-ui .login-dialog .version {
    margin: 0 0 1.75rem;
    text-align: center;
}

.login-ui .login-dialog .version .app-name {
    color: #12354a;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.login-ui .login-dialog .version .version-number {
    color: #657b89;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.login-ui .login-fields .labeled-field {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0.8rem;
    margin: 0.8rem 0;
}

.login-ui .login-fields .labeled-field .field-header {
    box-sizing: border-box;
    color: #567080;
    font-size: 0.92rem;
    margin: 0;
    opacity: 1;
    padding: 0.87rem 1rem;
}

.login-ui .login-fields input[type="text"],
.login-ui .login-fields input[type="email"],
.login-ui .login-fields input[type="password"],
.login-ui .login-fields select,
.login-ui .login-fields textarea {
    background: #ffffff;
    border: 1px solid #c8d8df;
    border-radius: 0.8rem;
    box-shadow: 0 1px 2px rgba(10, 42, 59, 0.04);
    box-sizing: border-box;
    color: #102f42;
    font: inherit;
    min-height: 3rem;
    outline: none;
    padding: 0.78rem 1rem;
    transition: border-color 150ms ease, box-shadow 150ms ease,
        background-color 150ms ease;
    width: 100%;
}

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

.login-ui .login-fields input[type="text"]:focus,
.login-ui .login-fields input[type="email"]:focus,
.login-ui .login-fields input[type="password"]:focus,
.login-ui .login-fields select:focus,
.login-ui .login-fields textarea:focus {
    background: #ffffff;
    border-color: #168fa3;
    box-shadow: 0 0 0 3px rgba(22, 143, 163, 0.18);
}

.login-ui .buttons {
    margin-top: 1.25rem;
}

.login-ui input.login,
.login-ui input.continue-login {
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(135deg, #147f96, #165978);
    border: 0;
    border-radius: 0.8rem;
    box-shadow: 0 0.65rem 1.35rem rgba(15, 91, 116, 0.25);
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: block;
    float: none;
    font: inherit;
    font-weight: 700;
    min-height: 3rem;
    margin: 0;
    padding: 0.8rem 1.25rem;
    transition: box-shadow 150ms ease, filter 150ms ease,
        transform 150ms ease;
    width: 100%;
}

.login-ui input.login:hover,
.login-ui input.continue-login:hover {
    box-shadow: 0 0.8rem 1.6rem rgba(15, 91, 116, 0.32);
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.login-ui input.login:focus-visible,
.login-ui input.continue-login:focus-visible {
    outline: 3px solid rgba(22, 143, 163, 0.35);
    outline-offset: 3px;
}

.login-ui input.login:disabled,
.login-ui input.continue-login:disabled {
    cursor: wait;
    filter: grayscale(0.4);
    opacity: 0.65;
    transform: none;
}

.login-ui.error p.login-error {
    background: rgba(255, 244, 244, 0.97);
    border: 1px solid #dc7d7d;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(73, 17, 17, 0.18);
    box-sizing: border-box;
    color: #842b2b;
    left: 50%;
    margin: 1rem 0 0;
    max-width: calc(100% - 2rem);
    padding: 0.85rem 1rem;
    right: auto;
    transform: translateX(-50%);
    width: 32rem;
}

@media (max-width: 64rem) {
    .login-ui .login-dialog-middle {
        padding: clamp(1rem, 4vw, 2.5rem);
        text-align: center;
    }

    .login-ui .login-dialog {
        margin: 0 auto;
    }
}

@media (max-width: 42rem) {
    .login-ui .login-dialog-middle {
        padding: 1rem;
    }

    .login-ui .login-dialog {
        max-width: 24rem;
    }

    .login-ui .login-form {
        padding: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-ui .login-fields input,
    .login-ui input.login,
    .login-ui input.continue-login {
        transition: 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;

}
.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}