/* Dark Halloween treatment for Horizon's authentication page. */
body#splash {
  box-sizing: border-box;
  min-height: 100vh;
  padding-top: 1.5rem;
  overflow-x: hidden;
  color: #f7efe5;
  background:
    radial-gradient(circle at 18% 16%, rgba(244, 124, 32, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 78%, rgba(91, 42, 134, 0.25), transparent 34rem),
    linear-gradient(145deg, #09070d 0%, #17101f 48%, #21152b 100%);
}

body#splash::before,
body#splash::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
  content: "🎃";
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.55));
}

body#splash::before {
  top: 8vh;
  left: 7vw;
  font-size: clamp(4rem, 9vw, 9rem);
  transform: rotate(-12deg);
  opacity: 0.82;
}

body#splash::after {
  right: 7vw;
  bottom: 7vh;
  font-size: clamp(3.5rem, 7vw, 7rem);
  transform: rotate(10deg);
  opacity: 0.72;
}

#splash .login {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

#splash .login .panel {
  overflow: hidden;
  color: #f7efe5;
  background: rgba(24, 17, 31, 0.94);
  border: 1px solid rgba(244, 124, 32, 0.48);
  border-radius: 1rem;
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.62), 0 0 2.5rem rgba(91, 42, 134, 0.22);
  backdrop-filter: blur(12px);
}

#splash .login .panel-heading {
  position: relative;
  padding: 2rem 2rem 1.5rem;
  color: #f7efe5;
  text-align: center;
  background: linear-gradient(135deg, rgba(91, 42, 134, 0.5), rgba(244, 124, 32, 0.12));
  border-bottom: 1px solid rgba(244, 124, 32, 0.32);
}

#splash .login .panel-heading::before,
#splash .login .panel-heading::after {
  position: absolute;
  bottom: -0.65rem;
  content: "🎃";
  font-size: 1.45rem;
}

#splash .login .panel-heading::before { left: 1.1rem; }
#splash .login .panel-heading::after { right: 1.1rem; }

#splash .login .panel-heading img {
  display: block;
  width: 16rem;
  max-width: 85%;
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 0.6rem 0.8rem rgba(0, 0, 0, 0.42));
}

#splash .login .login-title {
  display: none;
}

#splash .login .panel-body,
#splash .login .panel-footer {
  padding: 2rem;
  background: transparent;
}

#splash .login .panel-footer {
  padding-top: 0;
  border-top: 0;
}

#splash .login .help_text.alert-info {
  color: #f6e8d9;
  background: rgba(91, 42, 134, 0.28);
  border-color: rgba(244, 124, 32, 0.35);
}

#splash .login label,
#splash .login .help-block,
#splash .login .control-label {
  color: #e9dceb;
}

#splash .login .form-control {
  height: 3rem;
  color: #fffaf4;
  caret-color: #ff9b42;
  background-color: #100b16;
  border: 1px solid #5d4a69;
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.42);
}

#splash .login .form-control:focus {
  border-color: #ff8c1a;
  box-shadow: 0 0 0 3px rgba(244, 124, 32, 0.2);
}

#splash .login .btn-primary {
  min-height: 3rem;
  color: #21152b;
  font-weight: 700;
  background: linear-gradient(135deg, #ff9b42, #f47c20);
  border: 1px solid #ffad62;
  border-radius: 0.5rem;
  box-shadow: 0 0.65rem 1.4rem rgba(244, 124, 32, 0.22);
}

#splash .login .btn-primary:hover,
#splash .login .btn-primary:focus,
#splash .login .btn-primary:active {
  color: #150d1c;
  background: linear-gradient(135deg, #ffad62, #ff8c1a);
  border-color: #ffd0a3;
}

#splash .login a { color: #ffad62; }
#splash .login a:hover,
#splash .login a:focus { color: #ffd0a3; }

/* Halloween dashboard chrome (the seasonal stylesheet is loaded on every page). */
body:not(#splash) .navbar {
  background-color: #21152b !important;
  border: none !important;
}

body:not(#splash) .navbar-default .navbar-nav li a.dropdown-toggle:hover,
body:not(#splash) .navbar-default .navbar-nav li a.dropdown-toggle:active,
body:not(#splash) .navbar-default .navbar-nav li a.dropdown-toggle:focus,
body:not(#splash) .navbar-default .navbar-nav li.open a.dropdown-toggle {
  background-color: rgba(244, 124, 32, 0.22) !important;
}

/* Halloween dashboard sidebar. */
body:not(#splash) #sidebar,
body:not(#splash) #sidebar-accordion {
  color: #fffaf4 !important;
  background: #17101f !important;
}

body:not(#splash) #sidebar .panel,
body:not(#splash) #sidebar .list-group {
  background: transparent !important;
}

body:not(#splash) #sidebar .panel > a,
body:not(#splash) #sidebar .panel-heading a {
  color: #fffaf4 !important;
  font-weight: 700 !important;
  background: #21152b !important;
  border-bottom: 1px solid rgba(244, 124, 32, 0.2) !important;
}

body:not(#splash) #sidebar .panel > a:hover,
body:not(#splash) #sidebar .panel > a:focus {
  color: #ffffff !important;
  background: rgba(244, 124, 32, 0.18) !important;
}

body:not(#splash) #sidebar .panel .list-group-item,
body:not(#splash) #sidebar .openstack-panel a {
  color: #e9dceb !important;
  background: rgba(24, 17, 31, 0.55) !important;
  border-left: 4px solid transparent !important;
}

body:not(#splash) #sidebar .panel .list-group-item:hover,
body:not(#splash) #sidebar .panel .list-group-item:focus,
body:not(#splash) #sidebar .openstack-panel a:hover,
body:not(#splash) #sidebar .openstack-panel a:focus {
  color: #ffffff !important;
  background: rgba(244, 124, 32, 0.14) !important;
}

body:not(#splash) #sidebar .openstack-panel.active a,
body:not(#splash) #sidebar .panel .list-group-item.active {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: rgba(91, 42, 134, 0.35) !important;
  border-left-color: #ffad62 !important;
}

body:not(#splash) #sidebar .openstack-toggle {
  color: #ffffff !important;
}

/* If page wrappers are transparent, the background can fall back to <html>. */
html {
  background:
    radial-gradient(circle at 18% 16%, rgba(244, 124, 32, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 78%, rgba(91, 42, 134, 0.22), transparent 34rem),
    linear-gradient(145deg, #09070d 0%, #17101f 48%, #21152b 100%) fixed !important;
  background-color: #09070d !important;
}

/* Halloween dashboard text contrast for dark backgrounds. */
body:not(#splash) {
  color: #f7efe5;
  background:
    radial-gradient(circle at 18% 16%, rgba(244, 124, 32, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 78%, rgba(91, 42, 134, 0.22), transparent 34rem),
    linear-gradient(145deg, #09070d 0%, #17101f 48%, #21152b 100%) fixed !important;
  min-height: 100vh;
}

/* Let the dashboard background show through (Horizon defaults many wrappers to white). */
body:not(#splash) #main_content,
body:not(#splash) #content,
body:not(#splash) #content_body,
body:not(#splash) #page_wrapper,
body:not(#splash) #page-wrapper,
body:not(#splash) .page-content,
body:not(#splash) .content,
body:not(#splash) .content-body,
body:not(#splash) .usage,
body:not(#splash) .usage_summary,
body:not(#splash) .usage-summary,
body:not(#splash) .usage_wrapper,
body:not(#splash) .usage-summary-wrapper,
body:not(#splash) .quota-dynamic,
body:not(#splash) .quota-dynamic > .row,
body:not(#splash) .container,
body:not(#splash) .container-fluid,
body:not(#splash) .row,
body:not(#splash) .ng-view,
body:not(#splash) .tab-content,
body:not(#splash) .tab-pane,
body:not(#splash) .objects_wrapper {
  background: transparent !important;
  background-color: transparent !important;
}

/* Some Horizon pages put the main content inside Bootstrap columns that end up with a white background. */
body:not(#splash) #main_content .row > [class^="col-"],
body:not(#splash) #main_content .row > [class*=" col-"] {
  background: transparent !important;
  background-color: transparent !important;
}

body:not(#splash) h1,
body:not(#splash) h2,
body:not(#splash) h3,
body:not(#splash) h4,
body:not(#splash) .page-header,
body:not(#splash) .page-header h1 {
  color: #ffffff !important;
}

body:not(#splash) .text-muted,
body:not(#splash) .help-block,
body:not(#splash) small {
  color: rgba(233, 220, 235, 0.92) !important;
}

body:not(#splash) a {
  color: #ffad62;
}

body:not(#splash) a:hover,
body:not(#splash) a:focus {
  color: #ffd0a3;
}

body:not(#splash) .breadcrumb {
  color: #f7efe5;
  background: rgba(24, 17, 31, 0.55);
  border: 1px solid rgba(244, 124, 32, 0.16);
}

body:not(#splash) .breadcrumb a {
  color: #ffad62;
}

body:not(#splash) .breadcrumb > li + li:before {
  color: rgba(247, 239, 229, 0.65);
}

/* Tables: dark background + readable actions. */
body:not(#splash) .table {
  color: #f7efe5;
  background: rgba(24, 17, 31, 0.72);
}

body:not(#splash) .table tbody th,
body:not(#splash) .table tbody td {
  color: #f7efe5 !important;
  background: transparent;
  border-top-color: rgba(244, 124, 32, 0.12) !important;
}

body:not(#splash) .table > tbody > tr {
  background: rgba(23, 16, 31, 0.55) !important;
}

body:not(#splash) .table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(24, 17, 31, 0.72) !important;
}

body:not(#splash) .table-striped > tbody > tr:nth-of-type(even) {
  background: rgba(23, 16, 31, 0.55) !important;
}

body:not(#splash) .table-hover > tbody > tr:hover {
  background: rgba(244, 124, 32, 0.12);
}

body:not(#splash) .table thead th {
  color: #ffffff !important;
  background: #21152b !important;
  border-bottom-color: rgba(255, 255, 255, 0.16) !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
}

body:not(#splash) .table thead th a {
  color: #ffffff !important;
}

body:not(#splash) .table td {
  font-variant-numeric: tabular-nums;
}

body:not(#splash) .table a {
  color: #ffad62;
}

body:not(#splash) .table a:hover,
body:not(#splash) .table a:focus {
  color: #ffffff;
  text-decoration: underline;
}

body:not(#splash) .table .btn.btn-default,
body:not(#splash) .table .btn-group > .btn.btn-default {
  color: #f7efe5;
  background: #21152b;
  border-color: rgba(244, 124, 32, 0.25);
}

body:not(#splash) .table .btn.btn-default:hover,
body:not(#splash) .table .btn.btn-default:focus,
body:not(#splash) .table .btn-group > .btn.btn-default:hover,
body:not(#splash) .table .btn-group > .btn.btn-default:focus {
  color: #ffffff;
  background: rgba(244, 124, 32, 0.18);
  border-color: rgba(244, 124, 32, 0.4);
}

body:not(#splash) .table .btn .caret {
  border-top-color: #f7efe5;
}

/* Toggle-style button groups (e.g. Image Source Type File/URL). */
body:not(#splash) .switchable .btn-group > .btn.btn-default,
body:not(#splash) .switchable .btn-group > label.btn.btn-default,
body:not(#splash) .form-group .btn-group > .btn.btn-default,
body:not(#splash) .form-group .btn-group > label.btn.btn-default,
body:not(#splash) .btn-group.switchable > .btn.btn-default,
body:not(#splash) .btn-group.switchable > label.btn.btn-default,
body:not(#splash) .btn-group > .btn.btn-default,
body:not(#splash) .btn-group > label.btn.btn-default {
  color: #f7efe5;
  background: rgba(33, 21, 43, 0.92);
  border-color: rgba(244, 124, 32, 0.28);
}

body:not(#splash) .switchable .btn-group > .btn.btn-default:hover,
body:not(#splash) .switchable .btn-group > label.btn.btn-default:hover,
body:not(#splash) .switchable .btn-group > .btn.btn-default:focus,
body:not(#splash) .switchable .btn-group > label.btn.btn-default:focus,
body:not(#splash) .form-group .btn-group > .btn.btn-default:hover,
body:not(#splash) .form-group .btn-group > label.btn.btn-default:hover,
body:not(#splash) .form-group .btn-group > .btn.btn-default:focus,
body:not(#splash) .form-group .btn-group > label.btn.btn-default:focus,
body:not(#splash) .btn-group.switchable > .btn.btn-default:hover,
body:not(#splash) .btn-group.switchable > label.btn.btn-default:hover,
body:not(#splash) .btn-group.switchable > .btn.btn-default:focus,
body:not(#splash) .btn-group.switchable > label.btn.btn-default:focus,
body:not(#splash) .btn-group > .btn.btn-default:hover,
body:not(#splash) .btn-group > label.btn.btn-default:hover,
body:not(#splash) .btn-group > .btn.btn-default:focus,
body:not(#splash) .btn-group > label.btn.btn-default:focus {
  color: #ffffff;
  background: rgba(244, 124, 32, 0.18);
  border-color: rgba(244, 124, 32, 0.45);
}

body:not(#splash) .switchable .btn-group > .btn.btn-default.active,
body:not(#splash) .switchable .btn-group > label.btn.btn-default.active,
body:not(#splash) .switchable .btn-group > .btn.btn-default:active,
body:not(#splash) .switchable .btn-group > label.btn.btn-default:active,
body:not(#splash) .form-group .btn-group > .btn.btn-default.active,
body:not(#splash) .form-group .btn-group > label.btn.btn-default.active,
body:not(#splash) .form-group .btn-group > .btn.btn-default:active,
body:not(#splash) .form-group .btn-group > label.btn.btn-default:active,
body:not(#splash) .btn-group.switchable > .btn.btn-default.active,
body:not(#splash) .btn-group.switchable > label.btn.btn-default.active,
body:not(#splash) .btn-group.switchable > .btn.btn-default:active,
body:not(#splash) .btn-group.switchable > label.btn.btn-default:active,
body:not(#splash) .btn-group > .btn.btn-default.active,
body:not(#splash) .btn-group > label.btn.btn-default.active,
body:not(#splash) .btn-group > .btn.btn-default:active,
body:not(#splash) .btn-group > label.btn.btn-default:active {
  color: #21152b;
  background: linear-gradient(135deg, #ffad62, #ff8c1a);
  border-color: #ffd0a3;
}

/* Dropdown menus. */
body:not(#splash) .dropdown-menu {
  background: rgba(24, 17, 31, 0.98) !important;
  border: 1px solid rgba(244, 124, 32, 0.22) !important;
}

body:not(#splash) .dropdown-menu > li > a,
body:not(#splash) .dropdown-menu > li > button,
body:not(#splash) .dropdown-menu > li > span {
  color: #ffad62 !important;
  background: transparent !important;
  text-decoration: none;
}

body:not(#splash) .dropdown-menu > li > a:hover,
body:not(#splash) .dropdown-menu > li > a:focus,
body:not(#splash) .dropdown-menu > li > button:hover,
body:not(#splash) .dropdown-menu > li > button:focus,
body:not(#splash) .dropdown-menu > li.active > a,
body:not(#splash) .dropdown-menu > li.active > button,
body:not(#splash) .dropdown-menu > li.active > span {
  color: #ffffff !important;
  background: rgba(244, 124, 32, 0.18) !important;
  text-decoration: none;
}

body:not(#splash) .dropdown-menu > li.disabled > a,
body:not(#splash) .dropdown-menu > li.disabled > button,
body:not(#splash) .dropdown-menu > li.disabled > span,
body:not(#splash) .dropdown-menu > li > a.disabled,
body:not(#splash) .dropdown-menu > li > button.disabled,
body:not(#splash) .dropdown-menu > li > span.disabled {
  color: rgba(247, 239, 229, 0.85) !important;
  opacity: 0.85;
}

body:not(#splash) .dropdown-menu .divider {
  background-color: rgba(244, 124, 32, 0.18);
}

/* Keep danger actions red. */
body:not(#splash) .dropdown-menu .text-danger,
body:not(#splash) .dropdown-menu a.text-danger,
body:not(#splash) .dropdown-menu button.text-danger,
body:not(#splash) .dropdown-menu span.text-danger,
body:not(#splash) .dropdown-menu a.danger,
body:not(#splash) .dropdown-menu button.danger,
body:not(#splash) .dropdown-menu span.danger,
body:not(#splash) .dropdown-menu li.text-danger > a,
body:not(#splash) .dropdown-menu li.text-danger > span,
body:not(#splash) .dropdown-menu li.danger > a,
body:not(#splash) .dropdown-menu li.danger > span {
  color: #ff4d55 !important;
}

/* Modals / popups. */
body:not(#splash) .modal-backdrop.in {
  opacity: 0.7;
}

body:not(#splash) .modal-content {
  color: #f7efe5;
  background: rgba(24, 17, 31, 0.98);
  border: 1px solid rgba(244, 124, 32, 0.22);
  box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.72);
}

body:not(#splash) .modal-header,
body:not(#splash) .modal-footer {
  background: rgba(33, 21, 43, 0.88);
  border-color: rgba(244, 124, 32, 0.16);
}

body:not(#splash) .modal-header .close {
  color: #f7efe5;
  opacity: 0.9;
  text-shadow: none;
}

body:not(#splash) .modal-header .close:hover,
body:not(#splash) .modal-header .close:focus {
  color: #ffffff;
  opacity: 1;
}

body:not(#splash) .modal-body label,
body:not(#splash) .modal-body .control-label,
body:not(#splash) .modal-body .help-block {
  color: #f7efe5;
}

body:not(#splash) .modal-body .form-control {
  color: #fffaf4;
  background-color: #100b16;
  border-color: rgba(244, 124, 32, 0.22);
}

body:not(#splash) .modal-body .form-control:focus {
  border-color: #ff8c1a;
  box-shadow: 0 0 0 3px rgba(244, 124, 32, 0.18);
}

/* Select dropdown popups (Angular ui-select / Select2) + themable-select dropdowns. */
body:not(#splash) .ui-select-bootstrap .ui-select-toggle,
body:not(#splash) .ui-select-bootstrap .ui-select-match .btn.btn-default,
body:not(#splash) .select2-container .select2-choice,
body:not(#splash) .select2-container .select2-choices,
body:not(#splash) .themable-select > .btn.btn-default.dropdown-toggle {
  color: #f7efe5;
  background: rgba(33, 21, 43, 0.92);
  border-color: rgba(244, 124, 32, 0.28);
}

body:not(#splash) .ui-select-bootstrap .ui-select-choices,
body:not(#splash) .ui-select-bootstrap .ui-select-choices-row > a,
body:not(#splash) .select2-drop,
body:not(#splash) .select2-drop .select2-results,
body:not(#splash) .themable-select .dropdown-menu {
  color: #f7efe5;
  background: rgba(24, 17, 31, 0.98) !important;
  border-color: rgba(244, 124, 32, 0.22) !important;
}

body:not(#splash) .ui-select-bootstrap .ui-select-choices-row > a:hover,
body:not(#splash) .ui-select-bootstrap .ui-select-choices-row > a:focus,
body:not(#splash) .ui-select-bootstrap .ui-select-choices-row.active > a,
body:not(#splash) .select2-drop .select2-results .select2-highlighted,
body:not(#splash) .themable-select .dropdown-menu > li > a:hover,
body:not(#splash) .themable-select .dropdown-menu > li > a:focus {
  color: #ffffff !important;
  background: rgba(244, 124, 32, 0.18) !important;
}

/* Swift "Containers" left-side accordion list + empty-state well. */
body:not(#splash) .hz-container-accordion .panel,
body:not(#splash) .hz-container-accordion .panel.panel-default,
body:not(#splash) .well,
body:not(#splash) .well.well-sm,
body:not(#splash) .well.well-lg {
  color: #f7efe5 !important;
  background: rgba(24, 17, 31, 0.72) !important;
  border: 1px solid rgba(244, 124, 32, 0.18) !important;
}

body:not(#splash) .hz-container-accordion .panel > .panel-heading {
  color: #f7efe5 !important;
  background: rgba(33, 21, 43, 0.88) !important;
  border-color: rgba(244, 124, 32, 0.16) !important;
}

body:not(#splash) .hz-container-accordion .panel > .panel-heading a,
body:not(#splash) .hz-container-accordion .panel > .panel-heading .accordion-toggle,
body:not(#splash) .hz-container-accordion .panel > .panel-heading .panel-title {
  color: #ffad62 !important;
  text-decoration: none !important;
}

body:not(#splash) .hz-container-accordion .panel.panel-primary > .panel-heading {
  background: rgba(91, 42, 134, 0.42) !important;
}

body:not(#splash) .hz-container-accordion .panel.panel-primary > .panel-heading a,
body:not(#splash) .hz-container-accordion .panel.panel-primary > .panel-heading .accordion-toggle,
body:not(#splash) .hz-container-accordion .panel.panel-primary > .panel-heading .panel-title {
  color: #ffffff !important;
}

body:not(#splash) .hz-object-empty,
body:not(#splash) .hz-object-empty h1,
body:not(#splash) .hz-object-empty h2,
body:not(#splash) .hz-object-empty h3,
body:not(#splash) .hz-object-empty h4,
body:not(#splash) .hz-object-empty .ng-scope {
  color: #f7efe5 !important;
}

body:not(#splash) .hz-object-empty .fa,
body:not(#splash) .hz-object-empty .fa::before {
  color: #ffad62 !important;
}

@media (max-width: 48rem) {
  body#splash { padding-top: 1rem; }

  body#splash::before,
  body#splash::after { opacity: 0.28; }

  #splash .login .panel-body { padding: 1.5rem; }
  #splash .login .panel-footer { padding: 0 1.5rem 1.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  body#splash::before { animation: halloween-float 5s ease-in-out infinite; }
  body#splash::after { animation: halloween-float 6s ease-in-out infinite reverse; }
}

@keyframes halloween-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -0.75rem; }
}
