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

}
.login-ui {
    background:
        radial-gradient(circle at top left, rgba(18, 137, 213, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 173, 24, 0.16), transparent 28%),
        linear-gradient(135deg, #162029 0%, #1d2731 42%, #0f1820 100%);
}

.login-ui .login-dialog {
    max-width: 4.9in;
    padding: 1.6em 1.5em 1.35em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(11, 18, 25, 0.68);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(16px);
    color: #eef3f8;
}

.login-ui .login-dialog .logo {
    width: min(100%, 17.5rem);
    height: 5.95rem;
    margin: 0 auto 0.6rem;
    background-image: url("/app/ext/rba-theme/resources/images/logo.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

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

.login-ui .login-dialog .version::after {
    content: "Portal de Acesso RBA-TOTVS";
    display: block;
    margin-top: 0.65rem;
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(236, 242, 247, 0.78);
}

.login-ui .login-dialog .version .app-name {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: none;
    color: #f4f8fb;
}

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

.login-ui .login-dialog p {
    color: rgba(236, 242, 247, 0.82);
}

.login-ui .login-fields .labeled-field .field-header {
    color: rgba(228, 236, 244, 0.62);
}

.login-ui .login-fields .labeled-field.empty input {
    color: #f7fbff;
}

.login-ui .login-fields .labeled-field input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    color: #f7fbff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.login-ui .login-fields .labeled-field input:focus {
    background: rgba(8, 14, 20, 0.92);
    border-color: rgba(54, 165, 255, 0.58);
    box-shadow: 0 0 0 4px rgba(35, 135, 216, 0.16);
}

.login-ui .login-dialog .buttons {
    margin-top: 1.15rem;
}

.login-ui .login-dialog .buttons input[type="submit"] {
    min-width: 9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1788d3 0%, #27a2eb 45%, #f2a623 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 24px rgba(10, 96, 152, 0.32);
}

.login-ui .login-dialog .buttons input[type="submit"]:hover {
    filter: brightness(1.04);
}

.login-ui.error p.login-error {
    background: rgba(125, 13, 17, 0.92);
    border-color: rgba(255, 120, 120, 0.28);
    color: #ffe9e9;
}

@media (max-width: 640px) {
    .login-ui .login-dialog {
        max-width: calc(100vw - 1.5rem);
        padding: 1.25rem 1rem 1.1rem;
        border-radius: 20px;
    }

    .login-ui .login-dialog .logo {
        width: min(100%, 15rem);
        height: 5rem;
    }

    .login-ui .login-dialog .version::after {
        font-size: 0.86rem;
        letter-spacing: 0.05em;
    }
}
