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

}
.quickconnect-container{margin:.25em 0;width:100%;margin-left:.50em}.quickconnect-container .quickconnect-field{background-image:url('images/protocol-icons/guac-text.png');background-repeat:no-repeat;background-size:1.50em;background-position:.25em center;background-color:transparent;padding:.25em;padding-left:2.50em;width:100%;max-width:none;border:0;box-sizing:border-box}.quickconnect-button{clear:both;float:right;margin-right:.75em;font-size:.75em;padding:.25em}.quickconnect-list-item{vertical-align:middle;align-content:center;display:flex}/* K-line Academy login page — scoped to .login-ui only */

div.login-ui {
    background: linear-gradient(145deg, #0b132b 0%, #1c2541 45%, #003a71 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: absolute;
}

/* Page footer — fixed to bottom of login screen */
div.login-ui::before {
    content: "Powered by IT Team at K-line";
    position: absolute;
    bottom: 3.25em;
    left: 0;
    right: 0;
    padding: 1em 1.5em 0;
    border-top: 1px solid rgba(111, 255, 233, 0.18);
    text-align: center;
    font-size: 0.78em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 500;
    letter-spacing: 0.02em;
    box-sizing: border-box;
}

div.login-ui::after {
    content: "Technical support: ali.maher@kline-europe.com";
    position: absolute;
    bottom: 1.5em;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.78em;
    line-height: 1.5;
    color: #6fffe9;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.login-ui .login-dialog-middle {
    padding: 1.5em;
}

.login-ui .login-dialog {
    max-width: 22em;
    padding: 2em 2em 1.75em;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(111, 255, 233, 0.08);
    text-align: center;
}

.login-ui .login-dialog .logo {
    width: 11em;
    height: 2.2em;
    margin: 0 auto 1.25em;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('app/ext/guaws-branding/resources/images/kline-wordmark-dark.svg');
}

.login-ui .login-dialog h1 {
    display: none;
}

.login-ui .login-dialog .version {
    margin-top: 1em;
    color: #3a506b;
    font-size: 0.7em;
}

.login-ui .login-dialog .version .app-name {
    color: #0b132b;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 1em;
    margin-bottom: 0.25em;
}

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

.login-ui .login-dialog th {
    color: #0b132b;
    font-weight: 600;
    font-size: 0.85em;
    text-align: left;
    padding-bottom: 0.35em;
}

.login-ui .login-dialog .login-fields input,
.login-ui.continuation .login-dialog input.login {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    padding: 0.65em 0.85em;
    font-size: 0.95em;
    color: #0b132b;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.login-ui .login-dialog .login-fields input:focus,
.login-ui.continuation .login-dialog input.login:focus {
    outline: none;
    border-color: #06b0ae;
    box-shadow: 0 0 0 3px rgba(6, 176, 174, 0.18);
    background: #ffffff;
}

.login-ui .login-dialog .buttons {
    margin-top: 1.25em;
}

.login-ui .login-dialog .buttons input[type="submit"],
.login-ui.continuation .login-dialog .buttons input[type="submit"],
.login-ui.initial .login-dialog input.continue-login {
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 8px;
    padding: 0.75em 1em;
    font-size: 0.95em;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #06b0ae 0%, #178685 100%);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.login-ui .login-dialog .buttons input[type="submit"]:hover,
.login-ui.continuation .login-dialog .buttons input[type="submit"]:hover,
.login-ui.initial .login-dialog input.continue-login:hover {
    filter: brightness(1.05);
    box-shadow: 0 8px 20px rgba(6, 176, 174, 0.35);
}

.login-ui .login-dialog .buttons input[type="submit"]:active,
.login-ui.continuation .login-dialog .buttons input[type="submit"]:active {
    transform: translateY(1px);
}

.login-ui p.login-error,
.login-ui.error p.login-error {
    color: #c0392b;
    background: #fdecea;
    border-radius: 8px;
    padding: 0.65em 0.85em;
    font-size: 0.85em;
}

.login-ui .login-fields .labeled-field .field-header {
    color: #3a506b;
}

.login-ui .login-fields .form-field .password-field .toggle-password {
    color: #06b0ae;
}

.login-ui.continuation .login-dialog .logo,
.login-ui.continuation .login-dialog .version {
    display: block;
}

.login-ui.continuation .login-dialog {
    background: #ffffff;
}

.login-ui.error .login-dialog {
    background: #ffffff;
}
