/*
 * Guacamole login UI - Shimansky branding
 * File: app/ext/branding/css/login-override.css
 * Version: 1.2.0
 * Changelog:
 *   1.2.0 - Logo sized to fit dialog (12em wide), dialog widened to 22em
 *           min-width so "SHM ONLINE CLOUD" stays on one line.
 *   1.1.0 - Fix logo aspect ratio (470x71 source), style welcome disclaimer
 *           text for dark background, tighten dialog spacing.
 *   1.0.0 - Initial Shimansky theme: black bg, champagne gold accent, white dialog.
 */

/* ===== Logo (470x71 source -> aspect 6.62:1) ===== */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/branding/images/SHM.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 12em;
    height: 1.9em;          /* 12em / 6.62 ~= 1.81em, rounded up for safety */
    margin: 0 auto 0.8em auto;
}

/* ===== Page background - deep luxury black ===== */
div.login-ui {
    background: #0a0a0a;
    background-color: #0a0a0a;
    background-image: radial-gradient(ellipse at center, #1a1a1a 0%, #000000 70%);
}

/* ===== Dialog card ===== */
.login-ui .login-dialog {
    background-color: #ffffff;
    border-top: 3px solid #c9a961;            /* champagne gold accent */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
    padding: 2em 2em 1.5em 2em;
    min-width: 22em;
}

/* ===== Form labels ===== */
.login-ui .login-dialog .login-fields .field-header {
    color: #2c2c2c;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Input fields ===== */
.login-ui .login-dialog input[type="text"],
.login-ui .login-dialog input[type="password"] {
    background-color: #fafafa;
    border: 1px solid #d4d4d4;
    color: #1a1a1a;
}

.login-ui .login-dialog input[type="text"]:focus,
.login-ui .login-dialog input[type="password"]:focus {
    border-color: #c9a961;
    outline: none;
    box-shadow: 0 0 0 2px rgba(201, 169, 97, 0.2);
}

/* ===== Login button - black with gold hover ===== */
.login-ui .login-dialog input[type="submit"],
.login-ui .login-dialog .buttons input[type="button"] {
    background-color: #0a0a0a;
    border: 1px solid #0a0a0a;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 0.7em 1.5em;
    transition: all 0.2s ease;
}

.login-ui .login-dialog input[type="submit"]:hover,
.login-ui .login-dialog .buttons input[type="button"]:hover {
    background-color: #c9a961;
    border-color: #c9a961;
    color: #0a0a0a;
}

/* ===== Error messages ===== */
.login-ui .login-dialog .login-error {
    color: #8b0000;
    background-color: #fdf2f2;
    border-left: 3px solid #8b0000;
    padding: 0.5em 1em;
}

/* ===== Welcome / disclaimer block below dialog ===== */
.login-ui .welcome {
    color: #e8e8e8;
    text-align: center;
    max-width: 32em;
    margin: 1.5em auto 0 auto;
    font-size: 0.95em;
    line-height: 1.6;
}

.login-ui .welcome h2 {
    color: #c9a961;                           /* champagne gold heading */
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.1em;
    margin: 0 0 0.8em 0;
}

.login-ui .welcome p {
    color: #b8b8b8;
    margin: 0.4em 0;
}

.login-ui .welcome a {
    color: #c9a961;
    text-decoration: none;
    border-bottom: 1px dotted #c9a961;
}

.login-ui .welcome a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}
/*
 * 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;

}
