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

}
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

/* Style the page background - overrides default div.login-ui background */
div.login-ui {
    background-image: url('app/ext/tally-branding/resources/background.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Style the login box dialog */
div.login-ui .login-dialog {
    background: #021a12 !important;
    border: 1px solid #c59b27 !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(197, 155, 39, 0.2) !important;
    color: #f8fafc !important;
    padding: 40px 30px !important;
    width: 360px !important;
    max-width: 360px !important;
}

/* Style the custom gold tree corporate logo (with solid dark green background) */
div.login-ui .login-dialog .logo {
    background-image: url('app/ext/tally-branding/resources/logo.jpg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    height: 75px !important;
    margin: 0 auto 10px auto !important;
    box-shadow: none !important;
}

/* Style the "WELCOME BACK" title */
div.login-ui .login-dialog .version .app-name {
    font-family: 'Playfair Display', 'Cinzel', serif !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    color: #e8c35b !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
    margin-top: 5px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
}

/* Inject the subtitle below the app name using a pseudo-element */
div.login-ui .login-dialog .version .app-name::after {
    content: "Please enter your information to access your terminal." !important;
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #8fa09a !important;
    text-transform: none !important;
    letter-spacing: 0px !important;
    margin-top: 8px !important;
    text-align: center !important;
}

/* Hide the software version number */
div.login-ui .login-dialog .version .version-number {
    display: none !important;
}

/* Hide default Guacamole tri-color logo background classes */
div.login-ui .login-dialog .logo,
div.login-ui .login-dialog .version {
    background-color: transparent !important;
}

/* Style the field labels ("Username", "Password") */
div.login-ui .login-dialog label,
div.login-ui .login-dialog .field-header {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: #8fa09a !important;
    margin-bottom: 6px !important;
    display: block !important;
    font-weight: 600 !important;
}

/* Style the input fields wrapper and elements - overrides default .labeled-field overrides */
div.login-ui .login-dialog .login-fields .labeled-field input,
div.login-ui .login-dialog .login-fields .labeled-field.empty input,
div.login-ui .login-dialog .login-fields .labeled-field input:focus {
    background-color: #03150e !important;
    border: 1px solid #4a5c53 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 12px 12px 12px 42px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-size: 18px !important;
    background-position: 14px center !important;
    background-repeat: no-repeat !important;
    transition: all 0.2s ease-in-out !important;
}

/* Inject user icon to the username field */
div.login-ui .login-dialog .login-fields .labeled-field input[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c59b27'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E") !important;
}

/* Inject lock icon to the password field */
div.login-ui .login-dialog .login-fields .labeled-field input[type="password"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c59b27'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E") !important;
}

div.login-ui .login-dialog .login-fields .labeled-field input:focus {
    border-color: #e8c35b !important;
    box-shadow: 0 0 0 2px rgba(232, 195, 91, 0.25) !important;
    outline: none !important;
}

/* Style the submit buttons (Log In) - overrides default .buttons input[type="submit"] */
div.login-ui .login-dialog .buttons input[type="submit"] {
    background: linear-gradient(90deg, #c59b27 0%, #e8c35b 50%, #c59b27 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    color: #021a12 !important;
    font-weight: 700 !important;
    padding: 13px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-shadow: 0 4px 15px rgba(197, 155, 39, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    margin-top: 15px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

div.login-ui .login-dialog .buttons input[type="submit"]:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.5) !important;
}

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