/*
 * 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}
*:has(.login-ui) {
  -webkit-font-smoothing: antialiased;
  -moz-font-smoothing: antialiased;
  -webkit-appearance: none;
  appearance: none;
  background: none;
  box-sizing: border-box;
  outline: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  src: url(/app/ext/fenestrae/fonts/material-symbols.woff2) format('woff2');
}

@font-face {
  font-family: 'inter';
  font-style: normal;
  src: url(/app/ext/fenestrae/fonts/inter.ttf) format('truetype');
}

.login-ui a.button, .login-ui button, .login-ui input[type="submit"] {
  border:0;
  text-shadow: none;
  box-shadow: none;
}

.login-ui a.button:active, .login-ui button:active, .login-ui input[type=submit]:active {
  background-color: #0073b1;
  box-shadow: none;
}


html:has(.login-ui) {
  font-size: 62.5%;
  margin: 0;
}

body:has(.login-ui) {
  background: linear-gradient(to top, rgb(205, 244, 253), rgb(14, 128, 165) 59.66%, rgb(10, 80, 140) 95.38%);
  height: 100vh;
  line-height: 1.6;
  color: #fff;
  font-family: 'inter', sans-serif;
  font-weight: 500;
  margin: 0;
  font-size: 1.6rem;
}

.login-ui .login-dialog .logo {
  margin-bottom: 0.8rem;
  background-image: url('/app/ext/fenestrae/images/fenestrae-logo.png');
  background-size: 4rem 5.6rem;
  width: 4rem;
  height: 5.6rem;
}

.login-ui .login-dialog .version {
  padding:0;
}


.login-ui .login-dialog .version .app-name {
  font-family: 'Inter', sans-serif;
  margin-bottom: 2.2rem;
  color: #fff;
  text-align: center;
  font-size: 2.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 10%;
}

.login-ui .login-dialog .version .version-number {
  display: none;
}

.login-ui .login-dialog .logo img {
  margin: 0 auto;
  margin-bottom: 0.6rem;
  display: block;
}

div.login-ui {
  display: flex;
  justify-content: center;
  height: 100vh;
  background: url(/app/ext/fenestrae/images/mountains.svg) center bottom repeat-x;
}

.login-ui .login-dialog-middle {
    margin-top: 10vh;
    width: auto;
}

.login-ui .login-dialog {
  display: flex;
  width: 30rem;
  background-color: rgba(247, 247, 247, 0.1);
  border: 1px solid rgba(247, 247, 247, 0.2);
  border-left:0;
  border-right:0;
  padding: 2rem;
  border-radius: 2rem;
  color: #000;
  -webkit-box-shadow: 5px 5px 13px -2px rgba(0, 0, 0, 0.04);
  box-shadow: 5px 5px 13px -2px rgba(0, 0, 0, 0.04);
}

.login-ui.continuation .login-dialog {
  max-width: 60rem;
  width: auto;
  -webkit-box-shadow: 5px 5px 13px -2px rgba(0, 0, 0, 0.04);
  box-shadow: 5px 5px 13px -2px rgba(0, 0, 0, 0.04);
}

.login-ui .login-dialog th {
  text-shadow:none;
}

.totp-details {
  margin:0;
  margin-bottom: 2rem;
  font-size: 1.6rem;
  background: rgba(255,255,255,0.15);
  padding: 1rem;
  width:100%;
}

.login-ui .login-dialog p {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.4;
  margin:0;
  margin-bottom: 2.4rem;
}

.totp-qr-code img {
  max-width: 20rem;
}

.login-form {
  width: 100%;
}

.login-ui .fields {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.username-field,
.password-field,
.totp-code {
  width: 100%;
  border-bottom: 1px solid rgba(247, 247, 247, 0.2);
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
}

.login-ui.continuation .login-dialog .totp-code {
  max-width: 20rem;
  display: block;
}

h3.totp-details-header {
  font-size: 1.6rem;
  color:#fff;
}

.totp-hide-details, .totp-show-details {
  color: #fff;
}

.totp-qr-code img {
  border:none;
  box-shadow: none;
}


.password-field {
  border:0;
}

.username-field::before,
.password-field::before {
  font-family: 'Material Symbols Outlined';
  content: 'person';
  font-size: 24px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  color: #fff;
  opacity: 0.8;
}

.password-field::before {
  content: 'lock';
}

.login-ui .login-dialog .login-fields input,
.login-ui .login-dialog .login-fields input:focus {
  height: 3.4rem;
  padding: 1.2rem;
  width: 100%;
  font-size: 1.5rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 1);
  background: none;
  color: #fff;
  border-bottom: 1px solid rgba(247, 247, 247, 0.2);
  border:none;
  font-family: 'inter', sans-serif;
  margin:0;
  border-radius: 0;
}


.login-ui .login-fields .labeled-field {
  display: block;
  position: relative;
  z-index: 1;
}

.login-ui .login-fields .labeled-field .field-header {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: -1;
  margin: .5em;
  font-size: 1.5rem;
  opacity: 0;
}

.login-ui .login-fields .labeled-field.empty .field-header {
  opacity: 0.8;
}

.login-ui .login-fields .labeled-field.empty input::placeholder {
  color: #fff;
  opacity: 0.8;
}

.login-ui .login-fields .labeled-field .field-header label {
  opacity: 1;
  color: white;
  font-weight: 550;
  margin-left: 2.6rem;
}

.login-ui .form-group {
  width: 100%;
  margin-bottom: 1.4rem;
}

.login-ui .form-field {
  width: 100%;
}

input.login, input.continue-login {
  background: #005a8c;
  width: 100%;
  color: rgba(247, 247, 247, 0.9);
  padding: 1.2rem;
  font-size: 1.6rem;
  border-radius: 20rem;
  font-weight: 500;
  font-family: 'inter', sans-serif;
  box-shadow: none;
  text-shadow: none;
}

input.login:hover, input.continue-login:hover {
  background: #0073b1;
  cursor: pointer;
} 

.login-ui.error p.login-error {
  padding: 1rem;
  margin:0;
  background: rgba(224, 3, 3, 1);
  color: rgb(255, 255, 255);
  border-radius:0;
  -moz-border-radius: 0;
  -webkit-border-radius: 0;
  -khtml-border-radius: 0;
  text-align: center;
  font-family: 'inter', sans-serif;
  font-weight: 500;
  top: 2rem;
  left:2rem;
  right:2rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  display: none;;
}