/*
 * CMH branding for the Apache Guacamole login interface.
 */

.login-ui {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    width: 100%;
    overflow: auto;
    font-family: Manrope, "Segoe UI", system-ui, sans-serif;
}

.login-ui::before {
    content: "";
    position: fixed;
    inset: 0;
    background-color: #123c2d;
    background-image:
        linear-gradient(rgba(8, 22, 17, 0.42), rgba(8, 22, 17, 0.42)),
        url('app/ext/cmh-acesso-seguro/resources/images/login-background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
}

.login-ui .login-dialog-middle {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-ui .login-dialog {
    width: 100%;
    max-width: 332px;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #dde4f5;
    border-top: 1px solid #dde4f5;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(28, 43, 77, 0.12);
}

.login-ui .login-dialog .logo {
    width: 8.5em;
    height: 4.1em;
    margin: 0 auto 22px;
    background-image: url('app/ext/cmh-acesso-seguro/resources/images/cmh-logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.login-ui .login-dialog .version {
    margin-bottom: 24px;
    text-align: center;
}

.login-ui .login-dialog .version .app-name {
    color: #1f2a44;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0;
}

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

.login-ui .login-dialog .login-form {
    margin: 0;
}

.login-ui .login-dialog .login-fields {
    text-align: left;
}

.login-ui .login-dialog .login-fields table,
.login-ui .login-dialog .login-fields tbody,
.login-ui .login-dialog .login-fields tr,
.login-ui .login-dialog .login-fields th,
.login-ui .login-dialog .login-fields td {
    display: block;
    width: 100%;
}

.login-ui .login-dialog .login-fields tr {
    margin-bottom: 18px;
}

.login-ui .login-dialog .login-fields th {
    margin: 0 0 6px;
    padding: 0;
    font-weight: 600;
    color: #334155;
    font-size: 0.8125rem;
    text-align: left;
}

.login-ui .login-dialog .login-fields td {
    padding: 0;
}

.login-ui .login-dialog .login-fields input[type="text"],
.login-ui .login-dialog .login-fields input[type="password"],
.login-ui .login-dialog .login-fields input[type="number"],
.login-ui .login-dialog .login-fields input[type="email"] {
    width: 100%;
    height: auto;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fafbfc;
    color: #1e293b;
    font-size: 0.9375rem;
    box-sizing: border-box;
}

.login-ui .login-dialog .login-fields input:focus {
    outline: none;
    border-color: #1a5d3f;
    box-shadow: 0 0 0 3px rgba(26, 93, 63, 0.16);
    background: #fff;
}

.login-ui .login-dialog .buttons {
    margin-top: 6px;
}

.login-ui .login-dialog input[type="submit"] {
    width: 100%;
    min-height: 0;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #1a5d3f;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: none;
}

.login-ui .login-dialog input[type="submit"]:hover {
    background: #164d35;
}

.login-ui .login-dialog input[type="submit"]:active {
    background: #123c2d;
}

.login-ui .login-dialog .login-error,
.login-ui .login-dialog p[ng-show="helpText"] {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8125rem;
}

.login-ui .login-dialog .login-error {
    background: #fef2f2;
    color: #991b1b;
}

.login-ui .login-dialog p[ng-show="helpText"] {
    background: #f8fafc;
    color: #64748b;
}
/*
 * 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}