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

}
/* ---------------- Octopus theme for the Guacamole login ---------------- */

/* Octopus mark in place of the Guacamole tricolor */
.login-dialog .logo, .login-ui .logo, div.logo {
    background-image: url('app/ext/octopus-branding/images/octopus.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    width: 118px !important;
    height: 118px !important;
    margin: 0 auto !important;
}

/* Drop the "Apache Guacamole" wordmark and the version number */
.login-form .version,
.login-form .app-name,
.login-form .version-number { display: none !important; }

/* Our own title, inserted by startlink.js */
.octo-title {
    text-align: center;
    color: #40ffee;
    font-size: 1.5em;
    font-weight: 700;
    margin: .25em 0 1.1em 0;
    text-shadow: 0 0 18px rgba(0, 212, 255, .35);
}

/* Page background */
.login-ui, .login-dialog-middle {
    background: radial-gradient(900px 600px at 50% 28%,
                #0d2d45 0%, #05151f 62%, #030d14 100%) !important;
}

/* The dialog panel */
.login-dialog, .login-dialog.notification {
    background: rgba(4, 20, 33, .92) !important;
    border: 1px solid rgba(0, 212, 255, .30) !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .6) !important;
    color: #cfeaf5 !important;
}

/* Fields */
.login-dialog label, .login-dialog .labeled-field label { color: #9fd8ea !important; }
.login-dialog input[type=text], .login-dialog input[type=password] {
    background: rgba(0, 26, 46, .9) !important;
    border: 1px solid rgba(0, 212, 255, .32) !important;
    color: #eafaff !important;
    border-radius: 9px !important;
}
.login-dialog input[type=text]:focus, .login-dialog input[type=password]:focus {
    border-color: #40ffee !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(64, 255, 238, .18) !important;
}

/* Login button */
.login-dialog input[type=submit], .login-dialog button[type=submit] {
    background: linear-gradient(180deg, #00d4ff, #0096c8) !important;
    color: #00202f !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 10px !important;
}

/* ------- Prominent "start the PC" button (was small, bottom-right) ------- */
#octo-start-link {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 28px !important;
    z-index: 99999 !important;
    background: linear-gradient(180deg, #00d4ff, #0096c8) !important;
    color: #00202f !important;
    padding: .9em 1.9em !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font: 700 17px -apple-system, "Segoe UI", sans-serif !important;
    box-shadow: 0 10px 28px rgba(0, 170, 221, .45) !important;
}
#octo-start-link:hover { filter: brightness(1.08) !important; }

/* Placeholder text was almost invisible on the dark fields - readability fix */
.login-dialog input::placeholder,
.login-dialog input::-webkit-input-placeholder {
    color: #86bed2 !important;
    opacity: 1 !important;
}
/* Guacamole floats its field labels over the input; keep them legible too */
.login-dialog .labeled-field .field-header,
.login-dialog .labeled-field label { color: #9fd8ea !important; opacity: 1 !important; }
