/*
 * 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}/*
 * Home PC skin for the 1.6.0 web client.
 * Loads after the stock stylesheet. Login is the main surface; the rest is a
 * light restyle that keeps every stock control in place.
 */

:root {
  --hp-ground: #17382f;
  --hp-ground-lift: #245547;
  --hp-ink: #1b2a25;
  --hp-ink-soft: #28403a;
  --hp-muted: #56665f;
  --hp-surface: #ffffff;
  --hp-page: #f4f7f5;
  --hp-field: #f3f6f4;
  --hp-line: #d6dfda;
  --hp-line-soft: #e4ebe7;
  --hp-accent: #1f6b55;
  --hp-accent-hover: #195a47;
  --hp-accent-press: #134838;
  --hp-accent-tint: #e6f0eb;
  --hp-ring: rgba(31, 107, 85, 0.22);
  --hp-danger: #a3231b;
  --hp-danger-bg: #fcefed;
  --hp-danger-line: #f0cbc6;
  --hp-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --hp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hp-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Base (all pages except the remote desktop itself) ---------- */

body,
input,
button,
select,
textarea,
a.button,
input[type=submit],
.login-ui .login-dialog .login-fields input {
  font-family: var(--hp-font);
}

body:not(.client) {
  background: var(--hp-page);
  color: var(--hp-ink);
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

::selection {
  background: rgba(31, 107, 85, 0.2);
}

input,
textarea {
  caret-color: var(--hp-accent);
}

body:not(.client) a.button,
body:not(.client) button,
body:not(.client) input[type=submit] {
  background-color: var(--hp-ink-soft);
  border: none;
  border-radius: 10px;
  color: #fff;
  text-shadow: none;
  box-shadow: none;
  font-weight: 600;
  padding: 0.55em 1.1em;
  transition: background-color 140ms ease, transform 120ms var(--hp-ease);
}

body:not(.client) a.button:hover,
body:not(.client) button:hover,
body:not(.client) input[type=submit]:hover {
  background-color: #1e332d;
}

body:not(.client) a.button:active,
body:not(.client) button:active,
body:not(.client) input[type=submit]:active {
  box-shadow: none;
  transform: scale(0.98);
}

body:not(.client) a.button.danger,
body:not(.client) button.danger {
  background-color: #b3261e;
}

body:not(.client) a.button.danger:hover,
body:not(.client) button.danger:hover {
  background-color: #96201a;
}

body:not(.client) button:disabled,
body:not(.client) input[type=submit]:disabled {
  background-color: var(--hp-ink-soft);
  opacity: 0.55;
}

body:not(.client) a.button:focus-visible,
body:not(.client) button:focus-visible,
body:not(.client) input[type=submit]:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}

/* ---------- Login ---------- */

div.login-ui {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding: 24px 16px;
  background:
    radial-gradient(120% 70% at 50% -10%, var(--hp-ground-lift) 0%, rgba(36, 85, 71, 0) 62%),
    var(--hp-ground);
  color: var(--hp-ink);
}

.login-ui .login-dialog-middle {
  display: block;
  width: 100%;
  margin: auto 0;
  text-align: center;
}

.login-ui .login-dialog.notification,
.login-ui.continuation .login-dialog.notification {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 36px 32px 32px;
  font-size: 16px;
  text-align: left;
  color: var(--hp-ink);
  background: var(--hp-surface);
  border: none;
  border-radius: 22px;
  box-shadow:
    0 28px 56px -18px rgba(5, 22, 17, 0.55),
    0 2px 8px rgba(5, 22, 17, 0.18);
  animation: hp-arrive 420ms var(--hp-ease) both;
}

.login-ui .login-form {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
}

.login-ui .login-form > :not(.logo):not(.version) {
  grid-column: 1 / -1;
}

.login-ui .login-dialog .logo,
.login-ui.continuation .login-dialog .logo {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0;
  background: url('app/ext/home-pc-branding/images/mark.svg') center / 44px 44px no-repeat;
}

.login-ui .login-dialog .version,
.login-ui.continuation .login-dialog .version {
  display: block;
  padding: 0;
}

.login-ui .login-dialog .version .app-name {
  text-align: left;
  text-transform: none;
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}

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

/* Help text (two-step sign-in prompts) */
.login-ui .login-form > p {
  margin: 20px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hp-muted);
  text-wrap: pretty;
}

.login-ui .login-dialog .login-fields {
  margin-top: 26px;
}

.login-ui .login-dialog .login-fields .labeled-field {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
}

/* Floating label: sits inside the field, lifts when it has a value or focus */
.login-ui .login-dialog .login-fields .labeled-field .field-header {
  position: absolute;
  top: 18px;
  left: 15px;
  right: 15px;
  z-index: 2;
  margin: 0;
  opacity: 1;
  font-size: 1rem;
  line-height: 20px;
  color: var(--hp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  text-shadow: none;
  transform-origin: left top;
  transition: transform 180ms var(--hp-ease), color 140ms ease;
}

.login-ui .login-dialog .login-fields .labeled-field .field-header label {
  cursor: text;
}

.login-ui .login-dialog .login-fields .labeled-field:not(.empty) .field-header,
.login-ui .login-dialog .login-fields .labeled-field:focus-within .field-header,
.login-ui .login-dialog .login-fields .labeled-field:has(input:-webkit-autofill) .field-header {
  transform: translateY(-10px) scale(0.75);
}

.login-ui .login-dialog .login-fields .labeled-field:focus-within .field-header {
  color: var(--hp-accent);
}

.login-ui .login-dialog .login-fields .labeled-field .field-header:has(label:empty) {
  display: none;
}

.login-ui .login-dialog .login-fields .labeled-field input,
.login-ui .login-dialog .login-fields .labeled-field.empty input,
.login-ui .login-dialog .login-fields .labeled-field input:focus {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 56px;
  margin: 0;
  padding: 24px 14px 8px;
  font-size: 1rem;
  line-height: 24px;
  color: var(--hp-ink);
  background: var(--hp-field);
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  outline: none;
  box-shadow: none;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 160ms var(--hp-ease);
}

.login-ui .login-dialog .login-fields .labeled-field input:hover {
  border-color: #bccac3;
}

.login-ui .login-dialog .login-fields .labeled-field input:focus {
  background: var(--hp-surface);
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 4px var(--hp-ring);
}

.login-ui .login-dialog .login-fields .labeled-field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--hp-field) inset;
  -webkit-text-fill-color: var(--hp-ink);
}

.login-ui .login-dialog .login-fields .labeled-field input:disabled {
  opacity: 0.6;
}

/* Authenticator code: no floating label, centred digits */
.login-ui .login-dialog .login-fields .totp-code input,
.login-ui .login-dialog .login-fields .labeled-field .totp-code input:focus {
  padding: 0 14px;
  text-align: center;
  font-size: 1.375rem;
  letter-spacing: 0.28em;
  font-variant-numeric: tabular-nums;
}

.login-ui .login-dialog .login-fields .totp-code input::placeholder {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--hp-muted);
  opacity: 1;
}

/* Authenticator enrollment */
.login-ui .totp-enroll p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hp-muted);
  text-align: left;
}

.login-ui .totp-qr-code {
  box-sizing: border-box;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  line-height: 0;
}

.login-ui .totp-qr-code img {
  display: block;
  width: 200px;
  height: auto;
  margin: 0;
  border: none;
  box-shadow: none;
  background: #ffffff;
  image-rendering: pixelated;
  cursor: pointer;
}

.login-ui h3.totp-details-header {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hp-muted);
}

.login-ui h3.totp-details-header::before,
.login-ui .totp-details-visible h3.totp-details-header::before {
  content: none;
}

.login-ui .totp-hide-details,
.login-ui .totp-show-details {
  color: var(--hp-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.login-ui .totp-details {
  margin: 0 auto 16px;
  font-size: 0.8125rem;
  color: var(--hp-ink);
  border-collapse: collapse;
}

.login-ui .totp-details th {
  font-weight: 500;
  color: var(--hp-muted);
  padding: 2px 10px 2px 0;
}

.login-ui .totp-details td {
  font-family: var(--hp-mono);
  padding: 2px 0;
}

/* Submit */
.login-ui .login-dialog .buttons {
  margin: 8px 0 0;
  text-align: left;
}

.login-ui .login-dialog .buttons input[type=submit],
.login-ui.continuation .login-dialog .buttons input[type=submit] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: #fff;
  background-color: var(--hp-accent);
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10, 40, 31, 0.25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.login-ui.continuation .login-dialog .buttons input.login,
.login-ui.initial .login-dialog .buttons input.continue-login {
  display: none;
}

.login-ui .login-dialog .buttons input[type=submit]:hover {
  background-color: var(--hp-accent-hover);
}

.login-ui .login-dialog .buttons input[type=submit]:active {
  background-color: var(--hp-accent-press);
  transform: scale(0.985);
}

.login-ui .login-dialog .buttons input[type=submit]:disabled {
  background-color: var(--hp-accent);
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.login-ui .login-dialog .buttons input[type=submit]:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 3px;
}

/* Error */
.login-ui.error p.login-error {
  display: block;
  position: static;
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin: auto auto 12px;
  padding: 13px 16px 13px 44px;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: left;
  color: var(--hp-danger);
  background: var(--hp-danger-bg) url('app/ext/home-pc-branding/images/alert.svg') 15px 50% / 20px 20px no-repeat;
  border: 1px solid var(--hp-danger-line);
  border-radius: 14px;
  box-shadow: 0 10px 24px -14px rgba(5, 22, 17, 0.6);
  animation: hp-arrive 320ms var(--hp-ease) both;
}

.login-ui.error .login-dialog-middle {
  margin-top: 0;
}

.login-ui.error .login-dialog.notification {
  animation: hp-shake 360ms var(--hp-ease) both;
}

.login-ui.error .login-dialog .login-fields .labeled-field input:not(:focus) {
  border-color: #e3aaa3;
}

@keyframes hp-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes hp-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-7px); }
  45% { transform: translateX(5px); }
  70% { transform: translateX(-3px); }
}

@media (max-width: 480px) {
  div.login-ui {
    padding: 16px 14px;
  }

  .login-ui .login-dialog.notification,
  .login-ui.continuation .login-dialog.notification {
    padding: 30px 22px 24px;
    border-radius: 20px;
  }

  .login-ui .login-dialog .version .app-name {
    font-size: 1.375rem;
  }

  .login-ui .login-dialog .login-fields {
    margin-top: 22px;
  }
}

/* ---------- Home and shared chrome ---------- */

body:not(.client) .header {
  box-sizing: border-box;
  align-items: center;
  min-height: 60px;
  background: var(--hp-surface);
  border-bottom: 1px solid var(--hp-line-soft);
  box-shadow: none;
}

body:not(.client) .header:not(.ng-hide) ~ .header,
body:not(.client) .header:not(.ng-hide) ~ * .header {
  border-top: 1px solid var(--hp-line-soft);
}

body:not(.client) .header h2 {
  padding: 0 20px;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--hp-ink);
}

body:not(.client) .header .filter {
  padding: 10px 12px;
}

body:not(.client) .header .filter input.search-string {
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px 0 38px;
  font-size: 0.9375rem;
  color: var(--hp-ink);
  background: var(--hp-field) url('app/ext/home-pc-branding/images/search.svg') 11px 50% / 18px 18px no-repeat;
  border: 1px solid var(--hp-line);
  border-radius: 10px;
  transition: border-color 140ms ease, box-shadow 160ms var(--hp-ease);
}

body:not(.client) .header .filter input.search-string:focus {
  outline: none;
  background-color: var(--hp-surface);
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 3px var(--hp-ring);
}

/* User menu */
body:not(.client) .user-menu .menu-dropdown {
  align-self: stretch;
  background: transparent;
  border-left: none;
}

/* Line the home headers up with the centred connection column */
@media (min-width: 961px) {
  body:not(.client) .home-view .header {
    padding: 0 calc((100% - 920px) / 2);
  }

  body:not(.client) .home-view .header h2 {
    padding-left: 20px;
  }

  body:not(.client) .home-view .header .filter {
    padding-right: 20px;
  }
}

body:not(.client) .user-menu .menu-dropdown:hover {
  background: var(--hp-page);
}

body:not(.client) .user-menu .menu-dropdown.open,
body:not(.client) .user-menu .menu-dropdown.open:hover {
  background: var(--hp-accent-tint);
}

body:not(.client) .user-menu .menu-dropdown .menu-title {
  padding: 0 40px 0 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 60px;
  color: var(--hp-ink);
  background: url('app/ext/home-pc-branding/images/user.svg') 16px 50% / 20px 20px no-repeat;
}

body:not(.client) .user-menu .menu-dropdown .menu-indicator {
  width: 36px;
  background: url('app/ext/home-pc-branding/images/chevron.svg') 8px 50% / 18px 18px no-repeat;
}

body:not(.client) .user-menu .menu-dropdown .menu-contents {
  top: calc(100% + 6px);
  right: 8px;
  min-width: 232px;
  padding: 6px;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line-soft);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(12, 36, 29, 0.35), 0 2px 6px rgba(12, 36, 29, 0.08);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top right;
  transition: opacity 140ms ease, transform 180ms var(--hp-ease), visibility 0s linear 180ms;
}

body:not(.client) .user-menu .menu-dropdown.open .menu-contents {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

body:not(.client) .user-menu .menu-dropdown .menu-contents li a {
  margin: 1px 0;
  padding: 11px 12px 11px 40px;
  font-size: 0.9375rem;
  color: var(--hp-ink);
  border-radius: 9px;
  background-position: 13px 50%;
  background-size: 17px;
}

body:not(.client) .user-menu .menu-dropdown .menu-contents .page-list ul {
  background: transparent;
  border-bottom: 1px solid var(--hp-line-soft);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

body:not(.client) .user-menu .menu-dropdown .menu-contents .page-list li {
  display: block;
}

body:not(.client) .user-menu .menu-dropdown .menu-contents .profile {
  width: auto;
  margin: 8px 10px 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hp-line-soft);
}

.menu-dropdown .menu-contents li a:hover,
.page-tabs .page-list li a[href]:hover,
.section-tabs li a:hover {
  background-color: var(--hp-accent-tint);
}

.menu-dropdown .menu-contents li a.current,
.menu-dropdown .menu-contents li a.current:hover {
  opacity: 0.4;
}

body:not(.client) .menu-dropdown .menu-contents li a.danger {
  color: #fff;
  background-color: #b3261e;
}

.page-tabs .page-list li a[href].current,
.page-tabs .page-list li a[href].current:hover,
.section-tabs li a.current,
.section-tabs li a.current:hover {
  background: #d9e8e0;
  color: var(--hp-ink);
}

.list-item.selected {
  background: #dfece5;
}

.list-item:not(.selected) .caption:hover {
  background: var(--hp-accent-tint);
}

/* Connection list */
.home-view div.all-connections,
.home-view div.recent-connections {
  max-width: 920px;
  margin: 24px auto;
  padding: 0 20px;
}

.home-view .all-connections .group-list-page > .list-item + .list-item {
  margin-top: 8px;
}

.home-view .all-connections .group-list-page > .list-item > div > .caption {
  padding: 0;
  background: var(--hp-surface);
  border: 1px solid var(--hp-line-soft);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(12, 36, 29, 0.05);
  transition: border-color 140ms ease, box-shadow 180ms var(--hp-ease);
}

.home-view .all-connections .list-item:not(.selected) .caption:hover {
  background: var(--hp-surface);
}

.home-view .all-connections .group-list-page > .list-item > div > .caption:hover {
  border-color: #b9cfc4;
  box-shadow: 0 8px 20px -12px rgba(12, 36, 29, 0.35);
}

.home-view .all-connections a.home-connection,
.home-view .all-connections a.home-connection-group {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  box-sizing: border-box;
  padding: 12px 16px;
  color: var(--hp-ink);
  text-decoration: none;
  border-radius: 14px;
  -webkit-tap-highlight-color: transparent;
}

.home-view .all-connections a.home-connection:focus-visible,
.home-view .all-connections a.home-connection-group:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: 2px;
}

.home-view .all-connections a.home-connection:active {
  transform: scale(0.995);
}

.home-view .all-connections a.home-connection .icon.type {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--hp-accent-tint) url('app/ext/home-pc-branding/images/monitor.svg') center / 22px 22px no-repeat;
}

.home-view .all-connections .list-item .name {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hp-ink);
}

.home-view .all-connections .caption .activeUserCount {
  margin: 0 0 0 auto;
  float: none;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--hp-accent);
  background: var(--hp-accent-tint);
  padding: 3px 9px;
  border-radius: 999px;
}

.home-view .all-connections .caption.active * {
  opacity: 1;
}

/* Recent connections */
.home-view div.recent-connections div.connection {
  margin: 8px;
  padding: 12px 12px 10px;
  border-radius: 16px;
  transition: background-color 140ms ease;
}

.home-view .recent-connections .connection:hover {
  background: var(--hp-accent-tint);
}

.home-view .recent-connections .connection a {
  color: var(--hp-ink);
  text-decoration: none;
}

.home-view .recent-connections .connection .thumbnail {
  margin: 0 0 10px;
}

.home-view .recent-connections .connection .thumbnail > * {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 24px -12px rgba(12, 36, 29, 0.5), 0 0 0 1px rgba(12, 36, 29, 0.08);
}

.home-view .recent-connections .connection .caption .name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.home-view .recent-connections .placeholder {
  color: var(--hp-muted);
  font-size: 0.9375rem;
}

@media (max-width: 600px) {
  body:not(.client) .home-view .header {
    flex-wrap: wrap;
  }

  body:not(.client) .home-view .header > h2 {
    flex: 1 1 0;
    min-width: 0;
    line-height: 56px;
  }

  body:not(.client) .home-view .header > guac-group-list-filter {
    order: 3;
    flex: 1 1 100%;
  }

  body:not(.client) .home-view .header > guac-group-list-filter .filter {
    padding: 0 14px 12px;
  }

  body:not(.client) .home-view .header .filter input.search-string {
    max-width: none;
    font-size: 1rem;
  }

  body:not(.client) .user-menu .menu-dropdown {
    border-left: none;
  }

  body:not(.client) .user-menu .menu-dropdown .menu-title {
    line-height: 56px;
  }

  .home-view div.all-connections,
  .home-view div.recent-connections {
    margin: 16px auto;
    padding: 0 14px;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .login-ui,
  .login-ui .login-dialog.notification,
  .login-ui.error .login-dialog.notification,
  .login-ui.error p.login-error {
    animation: hp-fade 160ms ease both;
  }

  .login-ui .login-dialog .login-fields .labeled-field .field-header,
  body:not(.client) .user-menu .menu-dropdown .menu-contents {
    transition: none;
  }

  body:not(.client) .user-menu .menu-dropdown .menu-contents,
  body:not(.client) a.button:active,
  body:not(.client) button:active,
  body:not(.client) input[type=submit]:active,
  .login-ui .login-dialog .buttons input[type=submit]:active,
  .home-view .all-connections a.home-connection:active {
    transform: none;
  }
}

@keyframes hp-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
