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

}
/* WCA Remote - login page branding. Scoped to .login-ui so the HeavyBid session view is untouched. */
@font-face {
    font-family: 'WCA Montserrat';
    src: url('app/ext/wca-branding/fonts/montserrat-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

.login-ui {
    background: radial-gradient(ellipse at top, #590a0a 0%, #3d0202 35%, #161616 80%);
    font-family: 'WCA Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Card */
.login-ui .login-dialog {
    background: #ffffff;
    border: none;
    border-top: 5px solid #590a0a;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    max-width: 24em;
    padding: 2em 2.25em 1.5em;
}

/* Logo + name */
.login-ui .login-dialog .logo {
    background-image: url('app/ext/wca-branding/images/wca-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 11em;
    height: 9em;
    margin: 0 auto 0.75em;
}
.login-ui .login-dialog .version {
    text-align: center;
    margin-bottom: 1.25em;
}
.login-ui .login-dialog .version .app-name {
    font-family: 'WCA Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.9em;
    letter-spacing: 0.02em;
    color: #590a0a;
    text-transform: none;
}
.login-ui .login-dialog .version .version-number {
    display: none;
}

/* Microsoft sign-in (primary) */
.login-ui .wca-signin {
    text-align: center;
}
.login-ui .wca-ms-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    width: 100%;
    box-sizing: border-box;
    padding: 0.85em 1em;
    background: #590a0a;
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05em;
    text-decoration: none;
    transition: background 0.15s ease;
}
.login-ui .wca-ms-button:hover,
.login-ui .wca-ms-button:focus {
    background: #bd2a2a;
    color: #ffffff;
    text-decoration: none;
}
.login-ui .wca-ms-logo {
    width: 1.25em;
    height: 1.25em;
    background: #ffffff;
    padding: 2px;
    border-radius: 2px;
    flex: none;
}
.login-ui .wca-hint {
    margin: 0.75em 0 0;
    color: #555555;
    font-size: 0.9em;
}

/* Divider before the local (guacadmin) login */
.login-ui .wca-divider {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 1.5em 0 0.5em;
    color: #a88a6a;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.login-ui .wca-divider::before,
.login-ui .wca-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e3d9cf;
}

/* Local login fields + secondary button */
.login-ui .login-fields .labeled-field input {
    border-radius: 4px;
}
.login-ui .login-fields .labeled-field input:focus {
    border-color: #a88a6a;
}
.login-ui .buttons input[type="submit"] {
    width: 100%;
    background: #ffffff;
    color: #590a0a;
    border: 1px solid #a88a6a;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    padding: 0.6em 1em;
}
.login-ui .buttons input[type="submit"]:hover:not(:disabled) {
    background: #f7f3ef;
}

/* The stock bottom-left "Sign in with: OpenID" link is replaced by the button above */
.login-ui .sso-providers {
    display: none;
}

/* Error banner in WCA red */
.login-ui.error p.login-error {
    background: #bd2a2a;
    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.
 */

.login-ui .sso-providers {

    padding: 0.25em 0.5em;
    position: absolute;
    bottom: 0;
    left: 0;

}

.sso-providers ul {
    list-style: none;
}

.sso-providers ul, .sso-providers li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sso-providers li::before {
    content: ' / ';
}

.sso-providers li:first-child::before {
    display: none;
}
