/*
 * 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}/* Prihlasovacia stránka portálu: čierne pozadie, biele logo Mastery.
 *
 * Guacamole 1.6 má vlastné pravidlá s vyššou špecifickosťou
 * (div.login-ui biele pozadie, pole pri zameraní biele, odkazy TOTP modré),
 * preto sú farby s !important. Platí pre prvý krok (meno a heslo) aj pre
 * pokračovanie (kód TOTP, registrácia aplikácie s QR kódom).
 */
div.login-ui,
div.login-ui.continuation,
div.login-ui.error {
    background: #000 !important;
    color: #fff;
}

.login-ui .login-dialog,
.login-ui.continuation .login-dialog {
    background: #000 !important;
    border: 1px solid #333;
    color: #fff;
}

.login-ui .login-dialog .logo {
    background-image: url('app/ext/mastery-branding/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 100%;
    height: 72px;
    margin: 0.5em auto 1em;
}

.login-ui .login-dialog .version,
.login-ui .login-dialog .app-name,
.login-ui .login-dialog p,
.login-ui .login-dialog h3,
.login-ui .login-dialog th,
.login-ui .login-dialog td,
.login-ui .login-dialog label {
    color: #fff;
    text-shadow: none;
}

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

/* Polia: tmavé vo všetkých stavoch (prázdne, vyplnené, zamerané). */
.login-ui .login-dialog .login-fields .labeled-field input,
.login-ui .login-dialog .login-fields .labeled-field input:focus,
.login-ui .login-dialog .login-fields input {
    background: #111 !important;
    color: #fff !important;
    caret-color: #fff;
    border: 1px solid #444 !important;
}

/* Prázdne nezamerané pole je priehľadné, aby bol pod ním vidieť popis poľa. */
.login-ui .login-dialog .login-fields .labeled-field.empty input:not(:focus) {
    background: transparent !important;
}

.login-ui .login-dialog .login-fields input:focus {
    border-color: #fff !important;
    outline: none;
}

.login-ui .login-fields .labeled-field .field-header {
    color: #fff;
    opacity: 0.6;
}

/* Automatické vyplnenie prehliadača (Chrome, Safari) inak dá svetlé pozadie. */
.login-ui .login-dialog input:-webkit-autofill,
.login-ui .login-dialog input:-webkit-autofill:hover,
.login-ui .login-dialog input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
}

.login-ui .login-dialog input[type="submit"],
.login-ui .login-dialog .buttons input[type="submit"] {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #fff !important;
    font-weight: bold;
    text-shadow: none !important;
    cursor: pointer;
}

.login-ui .login-dialog input[type="submit"]:hover,
.login-ui .login-dialog input[type="submit"]:focus {
    background: #ddd !important;
    border-color: #ddd !important;
}

.login-ui .login-dialog input[type="submit"]:disabled {
    background: #555 !important;
    border-color: #555 !important;
    color: #ccc !important;
}

/* Registrácia aplikácie: QR kód potrebuje svetlý okraj, inak ho telefón nenačíta. */
.login-ui .totp-qr-code img {
    background: #fff;
    padding: 12px;
    border: none;
    box-shadow: none;
}

.login-ui .totp-hide-details,
.login-ui .totp-show-details {
    color: #9cf;
}

.login-ui .totp-details td {
    color: #fff;
}

/* Chybové hlásenie v tmavom prevedení. */
.login-ui.error p.login-error {
    background: #3a0d0d;
    border: 1px solid #a33;
    color: #fcc;
}
