/*
 * 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}/* Tedia branding for Guacamole 1.6.0. Login, home, and settings only. */
:root {
    --tedia-navy: #152f49;
    --tedia-navy-hover: #254c73;
    --tedia-cream: #faf8e4;
    --tedia-lavender: #d9e1f2;
    --tedia-line: #d6dddf;
    --tedia-white: #ffffff;
}

body.home,
body.settings,
.login-ui {
    color: var(--tedia-navy);
    background: var(--tedia-cream);
    font-family: Arial, Helvetica, sans-serif;
}

body.home .tedia-brandbar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 108px;
    padding: 16px 34px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--tedia-line);
    background: var(--tedia-cream);
}

body.home .tedia-brandbar-logo {
    display: block;
    width: 178px;
    max-width: 42vw;
    height: auto;
}

body.home .tedia-brandbar-divider {
    width: 1px;
    height: 38px;
    background: #aebbd0;
}

body.home .tedia-brandbar-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.home .connection-list-ui > .header,
body.settings .header {
    color: var(--tedia-navy);
    background: var(--tedia-cream);
    border-bottom: 1px solid var(--tedia-line);
    box-shadow: none;
}

body.home .header h2,
body.settings .header h2 {
    color: var(--tedia-navy);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.settings .header h2::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 25px;
    margin-right: 10px;
    vertical-align: middle;
    background: url('app/ext/tedia-branding/resources/tedia-mark.svg') center / contain no-repeat;
}

body.settings .page-list a {
    color: var(--tedia-navy);
}

body.settings .page-list a.current {
    color: var(--tedia-navy);
    background: var(--tedia-lavender);
    box-shadow: inset 0 -2px var(--tedia-navy);
}

body.settings .page-list a:not(.current):hover {
    color: var(--tedia-navy);
    background: #eef0e7;
}

body.settings .settings-view a:not(.home) {
    color: #255377;
}

body.settings .settings-view table thead,
body.settings .settings-view table th {
    color: var(--tedia-navy);
    background: #e7e9de;
}

body.home .recent-connections {
    padding: 22px 18px 32px;
}

body.home .recent-connections .connection a {
    display: block;
    padding: 12px 12px 16px;
    background: var(--tedia-white);
    border: 1px solid var(--tedia-line);
    border-radius: 12px;
    box-shadow: 0 5px 16px rgba(21, 47, 73, .07);
    color: var(--tedia-navy);
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

body.home .recent-connections .connection a:hover,
body.home .recent-connections .connection a:focus-visible {
    border-color: var(--tedia-navy);
    box-shadow: 0 8px 22px rgba(21, 47, 73, .13);
    transform: translateY(-2px);
}

body.home .recent-connections .connection .thumbnail {
    overflow: hidden;
    border-radius: 7px;
}

body.home .recent-connections .connection .caption {
    margin-top: 10px;
    color: var(--tedia-navy);
    font-weight: 700;
}

body.home .home-connection {
    color: var(--tedia-navy);
    border-radius: 7px;
    transition: background-color .15s ease;
}

body.home .home-connection:hover,
body.home .home-connection:focus-visible {
    background: var(--tedia-lavender);
}

body.home .home-connection .name,
body.settings .settings-view {
    color: var(--tedia-navy);
}

.login-ui .login-dialog {
    background: var(--tedia-white);
    border: 1px solid var(--tedia-line);
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(21, 47, 73, .14);
}

div.login-ui {
    background: var(--tedia-cream);
}

.login-ui.initial .login-dialog {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 350px;
    padding: 22px 24px 24px;
}

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

.login-ui.initial .login-dialog .logo {
    margin: 0 auto 22px;
}

.login-ui .sso-providers {
    display: none !important;
}

.login-ui .tedia-sso-choice {
    margin-top: 18px;
    text-align: center;
}

.login-ui .tedia-choice-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #61758a;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.login-ui .tedia-choice-separator::before,
.login-ui .tedia-choice-separator::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--tedia-line);
}

.login-ui .tedia-sso-button {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    color: var(--tedia-navy);
    background: var(--tedia-white);
    border: 1px solid var(--tedia-navy);
    border-radius: 6px;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}

.login-ui .tedia-sso-button:hover,
.login-ui .tedia-sso-button:focus-visible {
    color: var(--tedia-white);
    background: var(--tedia-navy-hover);
    outline: 2px solid var(--tedia-navy-hover);
    outline-offset: 2px;
}

.login-ui.continuation .tedia-sso-choice {
    display: none;
}

.login-ui .login-dialog .logo {
    width: 230px;
    height: 60px;
    margin: 0 auto 14px;
    background-image: url('app/ext/tedia-branding/resources/tedia-logo.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.login-ui .login-dialog input[type="text"],
.login-ui .login-dialog input[type="password"] {
    border-color: var(--tedia-line);
    border-radius: 6px;
}

.login-ui .login-dialog input:focus-visible,
body.home input:focus-visible,
body.settings input:focus-visible,
body.settings button:focus-visible {
    outline: 2px solid var(--tedia-navy-hover);
    outline-offset: 2px;
}

.login-ui input[type="submit"],
.login-ui button,
body.settings button,
body.settings input[type="submit"] {
    color: var(--tedia-white);
    background-color: var(--tedia-navy);
    border-color: var(--tedia-navy);
    border-radius: 6px;
}

.login-ui input[type="submit"]:hover,
.login-ui button:hover,
body.settings button:hover,
body.settings input[type="submit"]:hover {
    color: var(--tedia-white);
    background-color: var(--tedia-navy-hover);
    border-color: var(--tedia-navy-hover);
}

@media (max-width: 640px) {
    body.home .tedia-brandbar {
        gap: 12px;
        min-height: 82px;
        padding: 12px 16px;
    }

    body.home .tedia-brandbar-logo { width: 120px; }
    body.home .tedia-brandbar-divider { height: 28px; }
    body.home .tedia-brandbar-title { font-size: .76rem; }
    body.home .recent-connections { padding: 16px 8px 24px; }
}
/*
 * 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.
 */

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
