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

}
/* GitLab branding for Guacamole login page */

/* Login page background */
.login-ui {
    background: #171321 !important;
}

/* Login form container */
.login-ui .login-dialog {
    background: #1f1a2e !important;
    border: 1px solid #380d75 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

/* Replace Guacamole logo with GitLab tanuki (official SVG from press kit) */
.login-ui .logo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 380'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:%23e24329%7D.b%7Bfill:%23fc6d26%7D.c%7Bfill:%23fca326%7D%3C/style%3E%3C/defs%3E%3Cpath class='a' d='M282.83 170.73l-.27-.69-26.14-68.22a6.81 6.81 0 00-2.69-3.24 7 7 0 00-8 .43 7 7 0 00-2.32 3.52l-17.65 54H154.29l-17.65-54a6.86 6.86 0 00-2.32-3.53 7 7 0 00-8-.43 6.87 6.87 0 00-2.69 3.24L97.44 170l-.26.69a48.54 48.54 0 0016.1 56.1l.09.07.24.17 39.82 29.82 19.7 14.91 12 9.06a8.07 8.07 0 009.76 0l12-9.06 19.7-14.91 40.06-30 .1-.08a48.56 48.56 0 0016.08-56.04z'/%3E%3Cpath class='b' d='M282.83 170.73l-.27-.69a88.3 88.3 0 00-35.15 15.8L190 229.25c19.55 14.79 36.57 27.64 36.57 27.64l40.06-30 .1-.08a48.56 48.56 0 0016.1-56.08z'/%3E%3Cpath class='c' d='M153.43 256.89l19.7 14.91 12 9.06a8.07 8.07 0 009.76 0l12-9.06 19.7-14.91S209.55 244 190 229.25c-19.55 14.75-36.57 27.64-36.57 27.64z'/%3E%3Cpath class='b' d='M132.58 185.84A88.19 88.19 0 0097.44 170l-.26.69a48.54 48.54 0 0016.1 56.1l.09.07.24.17 39.82 29.82s17-12.85 36.57-27.64z'/%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 80px !important;
    height: 80px !important;
    margin: 20px auto !important;
}

/* Hide the default guacamole logo image */
.login-ui .logo img {
    display: none !important;
}

/* Title text */
.login-ui .login-dialog h1,
.login-ui .login-dialog .header {
    color: #e1d8f0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Input fields */
.login-ui .login-dialog input[type="text"],
.login-ui .login-dialog input[type="password"] {
    background: #2b2245 !important;
    border: 1px solid #504080 !important;
    color: #e1d8f0 !important;
    border-radius: 4px !important;
    padding: 10px !important;
}

.login-ui .login-dialog input[type="text"]:focus,
.login-ui .login-dialog input[type="password"]:focus {
    border-color: #6b4fbb !important;
    outline: none !important;
}

/* Login button - GitLab orange */
.login-ui .login-dialog button,
.login-ui .login-dialog input[type="submit"] {
    background: #e24329 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.login-ui .login-dialog button:hover,
.login-ui .login-dialog input[type="submit"]:hover {
    background: #fc6d26 !important;
}

/* Disclaimer text */
.login-ui .login-dialog .disclaimer {
    color: #999 !important;
    font-size: 11px !important;
    margin-top: 15px !important;
}

/* Error messages */
.login-ui .login-dialog .error {
    color: #fc6d26 !important;
}

/* Hide "Apache Guacamole" branding text */
.login-ui .version {
    display: none !important;
}
