/* ---------------------------------------------------------------------------
 * DFMaster theme for Apache Guacamole
 *
 * Selectors below were taken from the shipped stylesheet, not guessed:
 *   .attributes .form .fields .labeled-field { display: table-row }
 *   .attributes .form .fields .field-header  { display: table-cell }
 * The label cell has no width, so CJK labels wrapped one character per line.
 * Form inputs carry name="{{ field.name }}", which is what lets us target the
 * RDP domain row precisely.
 * ------------------------------------------------------------------------ */

/* --- 1. Stop Korean labels breaking vertically ------------------------- */
.form .fields .field-header {
    white-space: nowrap;
    min-width: 7em;
    padding-right: 1em;
    vertical-align: middle;
    text-align: right;
}

.form .fields .form-field {
    vertical-align: middle;
}

.form .fields .form-field input,
.form .fields .form-field select {
    min-width: 18em;
    padding: 0.45em 0.6em;
    border-radius: 4px;
}

/* The login screen reuses .field-header as a floating placeholder, so the
   rules above must not apply there. */
.login-ui .login-fields .labeled-field .field-header {
    white-space: normal;
    min-width: 0;
    padding-right: 0;
    text-align: left;
}

/* --- 2. Hide the RDP domain row ---------------------------------------- */
/* This host authenticates with an empty domain (MicrosoftAccount\... was
   rejected with STATUS_NO_SUCH_USER), so the field only invites wrong input. */
.labeled-field:has(input[name="domain"]) {
    display: none !important;
}

/* --- 3. Tidy up the credential prompt ---------------------------------- */
.dialog {
    border-radius: 10px;
    padding: 1.75em 2em;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.dialog .buttons {
    margin-top: 1.25em;
    text-align: center;
}

.dialog .buttons button {
    min-width: 7em;
    padding: 0.5em 1.2em;
    border-radius: 5px;
    cursor: pointer;
}

/* --- 4. Login page ------------------------------------------------------ */
.login-ui {
    background: linear-gradient(160deg, #1b2735 0%, #0f1720 100%);
}

.login-ui .login-dialog {
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    padding: 2em 2.25em;
}

.login-ui .login-dialog .version {
    opacity: 0.45;
}

.login-ui .login-dialog .buttons input[type="submit"] {
    border-radius: 5px;
    padding: 0.6em;
    cursor: pointer;
}
/*
 * 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;

}
