/*
 * 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;

}
/* Simac Portal: keyboard chooser above the app list on the home page. */
.simac-keyboard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em 0.75em;
    padding: 0.6em 1em;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}
.simac-keyboard label { font-weight: bold; }
.simac-keyboard select { max-width: 100%; padding: 0.25em 0.4em; }
.simac-keyboard .simac-keyboard-help { opacity: 0.7; }
.simac-keyboard .simac-keyboard-status { font-weight: bold; }
.simac-keyboard .simac-keyboard-status.saved { color: #1a7f37; }
.simac-keyboard .simac-keyboard-status.failed { color: #b42318; }
/*
 * 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;
}
/* Simac Portal login page.
 * Building photo as full-page background, one "Sign in" button that opens the
 * Microsoft 365 sign-in. No Guacamole branding, no local username/password form. */

div.login-ui {
    background: #0a4fb0 url('app/ext/simac-branding/images/front-login.jpg') center center / cover no-repeat;
}

/* The built-in dialog (username/password) is not offered on the first screen.
 * It still appears if Guacamole has to ask a follow-up question. */
.login-ui.initial .login-dialog {
    display: none;
}

.login-ui .login-dialog {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.40);
}

.login-ui .login-dialog .logo,
.login-ui .login-dialog .version .version-number {
    display: none;
}

/* Sign-in card: title (LOGIN.SECTION_HEADER_SSO_OPTIONS) + button (LOGIN.NAME_IDP_OPENID),
 * both set in translations/*.json. */
.login-ui .sso-providers {
    position: absolute;
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.4in;
    max-width: 90vw;
    box-sizing: border-box;
    padding: 1.6em 1.4em;
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.40);
}

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

.login-ui .sso-providers ul {
    margin-top: 1.2em;
    font-size: 0.75em;
    text-transform: none;
}

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

.login-ui .sso-providers a {
    display: block;
    padding: 0.7em 1em;
    color: #ffffff;
    background: #d4002a;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.login-ui .sso-providers a:hover,
.login-ui .sso-providers a:focus {
    background: #a80021;
}

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

/* On wide screens keep the card to the left so the Simac sign stays visible. */
@media (min-width: 1000px) {
    .login-ui .login-dialog-middle {
        text-align: left;
        padding-left: 12vw;
    }
    .login-ui .sso-providers {
        left: 12vw;
        transform: translateY(-50%);
    }
}
/*
 * Simac Portal: the Windows sign-in window of a terminal-server connection.
 *
 * The engine asks for username, domain and password. Users sign in with their
 * e-mail style name (your.user@simac.be), which already says which domain they
 * belong to, so the domain field is hidden. It is still sent, empty, exactly
 * as when a user left it blank. Only this window is touched: the "Domain" field
 * in the connection settings of an administrator stays.
 */
.client-status-modal .notification .labeled-field.labeled-field-domain {
    display: none;
}

/* Example in the empty username field (set by js/rdp-prompt.js). */
.client-status-modal .notification .labeled-field-username input::placeholder {
    color: #999;
    opacity: 1;
}
/* Simac Portal: the line under the list of active sessions that tells the list refreshes by itself. */
.settings.sessions .simac-sessions-refresh {
    margin-top: 1em;
    font-size: 0.85em;
    opacity: 0.7;
}
.settings.sessions .simac-sessions-refresh .paused {
    font-weight: bold;
}
