/* F1 START dark theme is scoped only to the Guacamole login view. */

.login-ui {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: auto !important;
    background:
        radial-gradient(circle at 84% 18%, rgba(8,174,234,.18), transparent 31%),
        radial-gradient(circle at 16% 90%, rgba(24,127,193,.15), transparent 35%),
        linear-gradient(135deg, #06131b 0%, #071b27 54%, #08283b 100%) !important;
}

.login-ui .login-dialog-middle,
.login-ui .login-dialog-container {
    background: transparent !important;
}

/* F1 START / Florence One - Guacamole login branding
   Visual language derived from the supplied F1 START HTML. */

.login-ui {
    --fo-cyan: #08aeea;
    --fo-blue: #187fc1;
    --fo-deep: #082d47;
    --fo-ink: #06131b;
    --fo-muted: #a9bac4;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 84% 18%, rgba(8,174,234,.18), transparent 31%),
        radial-gradient(circle at 16% 90%, rgba(24,127,193,.15), transparent 35%),
        linear-gradient(135deg, #06131b 0%, #071b27 54%, #08283b 100%);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.login-ui::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 87%);
    mask-image: linear-gradient(to bottom, #000, transparent 87%);
}

.login-ui::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 520px;
    height: 520px;
    right: -210px;
    top: -165px;
    border: 1px solid rgba(8,174,234,.18);
    border-radius: 50%;
    box-shadow: inset 0 0 90px rgba(8,174,234,.06), 0 0 0 90px rgba(8,174,234,.018);
    pointer-events: none;
    animation: fo-drift 10s ease-in-out infinite alternate;
}

@keyframes fo-drift {
    from { transform: translate3d(0,0,0) scale(1); }
    to   { transform: translate3d(-18px,22px,0) scale(1.05); }
}

.login-ui .login-dialog-middle {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-ui .login-dialog {
    position: relative;
    width: min(460px, calc(100vw - 36px));
    max-width: none;
    margin: 0;
    padding: 38px 40px 32px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 22px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(8,174,234,.14), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 30px 80px rgba(0,0,0,.30);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.login-ui .login-dialog::before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -135px;
    top: -125px;
    border-radius: 50%;
    background: rgba(8,174,234,.10);
    filter: blur(8px);
    pointer-events: none;
}

.login-ui .login-dialog .logo {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    background-image: url('app/ext/f1start-branding/resources/images/florence-one-mark.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

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

.login-ui .fo-brand-copy {
    position: relative;
    z-index: 1;
    margin: 0 0 30px;
    text-align: center;
}

.login-ui .fo-brand-name {
    display: inline-grid;
    margin-bottom: 18px;
    color: #fff;
    font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: .84;
    letter-spacing: .08em;
}

.login-ui .fo-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #7edaff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.login-ui .fo-kicker::before,
.login-ui .fo-kicker::after {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--fo-cyan);
    box-shadow: 0 0 12px rgba(8,174,234,.75);
}

.login-ui .fo-brand-copy h1 {
    margin: 0;
    color: #fff;
    font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    font-size: 36px;
    line-height: 1;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

.login-ui .fo-brand-copy p {
    margin: 9px 0 0;
    color: var(--fo-muted);
    font-size: 14px;
    line-height: 1.45;
}

.login-ui .login-dialog p {
    color: #a9bac4;
}

.login-ui .login-dialog .login-fields {
    position: relative;
    z-index: 1;
}

.login-ui .login-dialog .login-fields label {
    display: block;
    margin: 0 0 7px;
    color: #d7e4ea;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.login-ui .login-dialog .login-fields input,
.login-ui .login-dialog .login-fields select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 11px;
    color: #fff;
    background: rgba(2,17,25,.58);
    outline: none;
    font: 500 15px/1.2 Inter, "Segoe UI", Arial, sans-serif;
    box-shadow: none;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.login-ui .login-dialog .login-fields input:focus,
.login-ui .login-dialog .login-fields select:focus {
    border-color: rgba(67,202,245,.72);
    box-shadow: 0 0 0 4px rgba(8,174,234,.11), 0 12px 32px rgba(0,0,0,.18);
    background: rgba(3,23,34,.78);
}

.login-ui .login-dialog .buttons {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.login-ui .login-dialog input[type="submit"] {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 10px;
    color: #03131d;
    background: linear-gradient(90deg, #44c9f3, #08aeea);
    box-shadow: 0 15px 38px rgba(8,174,234,.26);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.login-ui .login-dialog input[type="submit"]:hover:not(:disabled),
.login-ui .login-dialog input[type="submit"]:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 20px 48px rgba(8,174,234,.36);
    filter: brightness(1.05);
}

.login-ui .login-dialog input[type="submit"]:disabled {
    opacity: .45;
}

.login-ui .fo-security-note {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #7f949f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
}

.login-ui .fo-security-note i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #40d49d;
    box-shadow: 0 0 12px rgba(64,212,157,.72);
}

.login-ui .login-error {
    position: relative;
    z-index: 4;
    width: min(460px, calc(100vw - 36px));
    margin: 22px auto -8px;
    padding: 12px 15px;
    border: 1px solid rgba(255,120,120,.25);
    border-radius: 11px;
    color: #ffd5d5;
    background: rgba(132,25,25,.25);
    box-shadow: 0 14px 35px rgba(0,0,0,.18);
    text-align: center;
}

@media (max-width: 560px) {
    .login-ui .login-dialog-middle { padding: 18px; }
    .login-ui .login-dialog { padding: 30px 22px 26px; border-radius: 16px; }
    .login-ui .fo-brand-copy h1 { font-size: 31px; }
    .login-ui .fo-brand-name { font-size: 16px; }
    .login-ui .fo-kicker { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-ui::after { animation: none !important; }
    .login-ui *, .login-ui *::before, .login-ui *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* F1 START r8 - transparent application logos on Guacamole home. */
.f1-app-logo-host {
    position: relative !important;
    overflow: hidden !important;
}

.f1-app-logo-recent {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 92px !important;
    height: 92px !important;
    max-width: 52% !important;
    max-height: 72% !important;
    object-fit: contain !important;
    transform: translate(-50%, -50%) !important;
    z-index: 20 !important;
    pointer-events: none !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.20));
}

.f1-app-logo-list-host {
    display: inline-flex !important;
    align-items: center !important;
}

.f1-app-logo-list {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    margin-right: 9px !important;
    flex: 0 0 auto !important;
    vertical-align: middle !important;
}
/*
 * 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}