/*
 * 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}/* SecureDesk light branding */
.login-ui .logo {
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 0.5em auto !important;
}
.login-ui .logo::before {
    content: "GRAT";
    display: block;
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2b3a4a;
    padding: 0.2em 0 0 0;
}
.login-ui .logo::after {
    content: "тестовая безопасная сеть";
    display: block;
    text-align: center;
    font-size: 1.05em;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #4a5b6d;
    padding: 0.1em 0 0.3em 0;
}
.login-ui .version {
    display: none !important;
}
.secdesk-notice {
    margin: 0 0 1em 0;
    padding: 0.7em 1em;
    border-radius: 6px;
    background: #fff4e5;
    color: #7a4b00;
    border: 1px solid #f5c98a;
    font-size: 0.95em;
    line-height: 1.35;
    text-align: center;
}

/* Remote display: the browser must not scroll/zoom/select/callout on it.
   Touch handling is fully custom (secdesk-mobile.js). */
.client-main .display,
.client-main .display * {
    touch-action: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent;
}
.client-main {
    overscroll-behavior: none;
}

/* Text input bar (phones): readable font, no iOS auto-zoom (>=16px) */
.text-input textarea.target {
    font-size: 16px !important;
    line-height: 1.3;
}
.text-input .text-input-buttons .key {
    min-width: 2.6em;
}
/* Touch devices (classes added by secdesk-mobile.js): the field looks and
   behaves like a real message input, 44px tap target, visible label. */
.text-input.secdesk-bar {
    min-height: 48px;
    padding: 4px 4px 4px 6px;
    box-sizing: border-box;
    background: #1c2128;
}
.text-input .text-input-field.secdesk-field {
    position: relative;
    min-height: 40px;
    box-sizing: border-box;
    padding: 0 0.6em;
    border-radius: 12px;
    background: #2f3640;
    border: 1px solid #55606e;
    -webkit-user-select: none;
    user-select: none;
}
.text-input .text-input-field.secdesk-field .target {
    min-height: 38px;
    padding: 0.55em 0.25em 0.45em 0;
    caret-color: #ffd27a;
}
.text-input .text-input-field.secdesk-field.secdesk-focused {
    border-color: #7fb3ff;
    background: #262d37;
}
.secdesk-kbd-label {
    position: absolute;
    left: 0.7em;
    right: 0.5em;
    top: 50%;
    transform: translateY(-50%);
    color: #d5dbe3;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.secdesk-kbd-ico {
    display: inline-block;
    margin-right: 0.45em;
    font-size: 1.25em;
    vertical-align: -0.1em;
    color: #ffd27a;
}
.text-input .text-input-field.secdesk-focused .secdesk-kbd-label {
    display: none;
}

/* One-time gesture hint */
.secdesk-hint {
    position: fixed;
    left: 50%;
    bottom: 5.5em;
    transform: translateX(-50%);
    max-width: 92vw;
    padding: 0.7em 1em;
    border-radius: 10px;
    background: rgba(20, 28, 38, 0.92);
    color: #fff;
    font-size: 0.9em;
    line-height: 1.4;
    text-align: center;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    pointer-events: auto;
}
.secdesk-hint b {
    color: #ffd27a;
    font-weight: 600;
}
