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

}
.totp-enroll p,.totp-details{font-size:.8em}.totp-qr-code{text-align:center}.totp-qr-code img{margin:1em;border:1px solid rgba(0,0,0,0.25);box-shadow:1px 1px 2px rgba(0,0,0,0.25);cursor:pointer}h3.totp-details-header{font-size:.8em}h3.totp-details-header::before{content:'▸ '}.totp-details-visible h3.totp-details-header::before{content:'▾ '}.totp-details,.totp-hide-details{display:none}.totp-details-visible .totp-details{display:table}.totp-details-visible .totp-hide-details{display:inline}.totp-details-visible .totp-show-details{display:none}.totp-hide-details,.totp-show-details{color:blue;text-decoration:underline;cursor:pointer;margin:0 .25em;font-weight:normal}.totp-details{margin:0 auto}.totp-details th{padding-right:.25em;text-align:left}.totp-details td{font-family:monospace}.totp-detail{display:inline-block;margin:0 .25em}
/* Dorotheenhof Weimar v2.2 */
.login-ui {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: auto !important;
    background:
      linear-gradient(90deg, rgba(15,25,13,.35) 0%, rgba(15,25,13,.12) 36%, rgba(15,25,13,0) 68%),
      url("app/ext/hotel-dorotheenhof-weimar-branding-v28/images/login-background.jpg") center center / cover no-repeat !important;
}

.login-ui .login-dialog-middle {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-left: 7.2vw !important;
    box-sizing: border-box !important;
}

.login-ui .login-dialog {
    width: min(28rem, 86vw) !important;
    max-width: 28rem !important;
    margin: 0 !important;
    padding: 2.0rem 2.15rem 2rem !important;
    border-radius: 9px !important;
    background: rgba(250,247,240,.96) !important;
    border: 1px solid rgba(255,255,255,.65) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,.30) !important;
    overflow: visible !important;
}

.login-ui .login-dialog .logo {
    display: block !important;
    width: 100% !important;
    height: 7.8rem !important;
    margin: -.4rem auto .5rem !important;
    background: url("app/ext/hotel-dorotheenhof-weimar-branding-v28/images/brand-header.svg") center center / contain no-repeat !important;
}

.login-ui .login-dialog .version {
    display: block !important;
    text-align: center !important;
    margin: 0 0 1.15rem !important;
}
.login-ui .login-dialog .version .app-name {
    font-size: 1.35rem !important;
    color: #222 !important;
}
.login-ui .login-dialog .version .version-number {
    display: none !important;
}

.login-ui .login-fields {
    margin-top: .4rem !important;
}

.login-ui input[type="text"],
.login-ui input[type="password"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 3.05rem !important;
    padding: .72rem .9rem !important;
    background: rgba(255,255,255,.98) !important;
    color: #222 !important;
    border: 1px solid #cec8c1 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    outline: none !important;
}

.login-ui input[type="text"]:focus,
.login-ui input[type="password"]:focus {
    border-color: #7f1828 !important;
    box-shadow: 0 0 0 2px rgba(127,24,40,.14) !important;
}

.login-ui input::placeholder {
    color: #777 !important;
    opacity: 1 !important;
}

.login-ui input[type="submit"].login,
.login-ui button.login {
    width: 100% !important;
    min-height: 3.05rem !important;
    margin-top: .85rem !important;
    background: #7f1828 !important;
    border: 1px solid #7f1828 !important;
    color: #fff !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

.login-ui input[type="submit"].login:hover,
.login-ui button.login:hover {
    background: #68131f !important;
    border-color: #68131f !important;
}

@media (max-width: 760px) {
  .login-ui {
      background-position: 62% center !important;
  }
  .login-ui .login-dialog-middle {
      justify-content: center !important;
      padding-left: 0 !important;
      padding: 1rem !important;
  }
  .login-ui .login-dialog {
      width: min(25rem, 90vw) !important;
  }
}


.login-ui .login-fields input[type="text"],
.login-ui .login-fields input[type="password"] {
    margin-top: 0 !important;
}


/* v2.6 - Kaisersaal-style login fields:
   no labels above the fields; placeholders only. */
.login-ui .login-fields label,
.login-ui .login-fields .field-header,
.login-ui .login-fields .field-label,
.login-ui .login-fields .form-field > label {
    display: none !important;
}

.login-ui .login-fields input[type="text"],
.login-ui .login-fields input[type="password"] {
    margin-top: .55rem !important;
    padding: .78rem 1rem !important;
    color: #222 !important;
    background: rgba(255,255,255,.98) !important;
    border: 1px solid #cec8c1 !important;
    border-radius: 5px !important;
}

.login-ui .login-fields input::placeholder {
    color: #7a7a7a !important;
    opacity: 1 !important;
}

.login-ui .login-fields input[type="text"]:focus,
.login-ui .login-fields input[type="password"]:focus {
    border-color: #7f1828 !important;
    box-shadow: 0 0 0 2px rgba(127,24,40,.14) !important;
}


/* v2.7 - Placeholder behavior copied from the proven Hotel Am Kaisersaal branding. */
.login-ui .login-dialog td:first-child:not(:only-child),
.login-ui .login-dialog label {
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.login-ui .login-dialog input::placeholder {
    color: #929598 !important;
    opacity: 1 !important;
}

.login-ui .login-dialog input:focus::placeholder {
    color: transparent !important;
    opacity: 0 !important;
}
