/* CST branding for the Guacamole sign-in page.
   Rebuild the extension after editing: ./build-branding.sh */

/* Page: stack the sign-in card and the staff button, centered */
div.login-ui {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef2f6;
}

.login-ui .login-dialog-middle {
    display: block;
    width: 100%;
    flex: none;
}

/* Card */
.login-ui.initial .login-dialog {
    box-sizing: border-box;
    max-width: 22rem;
    padding: 1.25em;
    background: #ffffff;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, 0.08);
}

/* Heading: company name over the application name, no Guacamole logo or version */
.login-ui .login-dialog .logo,
.login-ui .login-dialog .version .version-number {
    display: none;
}

.login-ui .login-dialog .version {
    padding: 0 0 0.9em;
    text-align: center;
}

.login-ui .login-dialog .version::before {
    content: "COLD STORAGE TECHNOLOGIES";
    display: block;
    margin-bottom: 0.4em;
    font-size: 0.62em;
    font-weight: bold;
    letter-spacing: 0.14em;
    color: #5b6b7c;
}

.login-ui .login-dialog .version .app-name {
    text-transform: none;
    font-size: 1.4em;
    color: #102a43;
}

/* Username and password form is the customer route */
.login-ui.initial .login-dialog .login-fields::before {
    content: "CUSTOMER SIGN-IN";
    display: block;
    margin-bottom: 0.6em;
    font-size: 0.62em;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #5b6b7c;
    text-align: center;
}

.login-ui .login-dialog .buttons input[type="submit"] {
    padding: 0.6em;
    background: #102a43;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.login-ui .login-dialog .buttons input[type="submit"]:hover {
    background: #1d4268;
}

/* Staff route: the single sign-on link becomes a full-width button under the card */
/* "div." outranks the single sign-on extension's own rule, which loads later */
div.login-ui .sso-providers {
    position: static;
    box-sizing: border-box;
    width: 100%;
    max-width: 22rem;
    margin-top: 18px;
    padding: 0;
    font-size: 0; /* hides the stock "Sign in with:" text */
}

div.login-ui.continuation .sso-providers {
    display: none;
}

div.login-ui .sso-providers::before {
    content: "CST STAFF";
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: #5b6b7c;
    text-align: center;
}

div.login-ui .sso-providers ul,
div.login-ui .sso-providers li {
    display: block;
}

div.login-ui .sso-providers li::before {
    content: none;
}

div.login-ui .sso-providers li.sso-provider-openid a {
    display: block;
    padding: 13px 12px;
    background: #ffffff;
    border: 1px solid #b8c4d0;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 0; /* hides the stock "OpenID" text */
}

div.login-ui .sso-providers li.sso-provider-openid a::after {
    content: "Sign in with Google";
    font-size: 18px;
    font-weight: bold;
    color: #102a43;
}

div.login-ui .sso-providers li.sso-provider-openid a:hover,
div.login-ui .sso-providers li.sso-provider-openid a:focus {
    background: #f5f8fb;
    border-color: #102a43;
}
/*
 * 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}/*
 * 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;
}
