/*
 * Globals
 */

/* Links */
a,
a:focus,
a:hover {
  color: #06F;
}

/*
 * Base structure
 */

html,
body {
  min-height: 100vh;
  background-color: #333;
}
body {
  color: #fff;
  text-align: center;
}

.alert {
	text-align: left !important;
	position: relative;
}

i.alert-close {
	position: absolute;
	top: 5px;
	right: 5px;
  cursor: pointer;
}

span.required {
  color: #f00 !important;
  font-size: 2em;
}

/* Extra markup and styles for table-esque vertical and horizontal centering */
.site-wrapper {
  display: table;
  width: 100%;
  height: 100%; /* For at least Firefox */
  min-height: 100vh;
  -webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
          box-shadow: inset 0 0 100px rgba(0,0,0,.5);
  /* Sits above the video/embed background layer below, so the vignette - and the overlay the
     liquid glass theme paints on this element - still read over the media */
  position: relative;
  z-index: 1;
}

/*
 * Login page background media
 *
 * The login page background is configured in the admin panel and resolved by
 * AduvioWebsite::pageBackground(). An image or a solid colour is set straight on the body; a self
 * hosted video or a YouTube/Vimeo clip is rendered as the layer below, covering the viewport
 * behind the whole page. The image stays on as the poster frame, so the page still reads while
 * the media loads or if it never plays at all
 */

.login-bg-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border: 0;
  overflow: hidden;
  pointer-events: none;
}

video.login-bg-media {
  object-fit: cover;
}

.login-bg-embed iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  /* The player keeps its own 16:9 box, so it is oversized on whichever axis falls short */
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100%;
  border: 0;
  pointer-events: none;
}

/* Backgrounds are decoration only - nothing the player would normally draw over the video may
   ever show. The native controls are hidden outright, and the YouTube/Vimeo iframe is oversized
   past the viewport so the player's own title bar and control bar fall outside of it */

video.login-bg-media::-webkit-media-controls,
video.login-bg-media::-webkit-media-controls-enclosure,
video.login-bg-media::-webkit-media-controls-panel,
video.login-bg-media::-webkit-media-controls-start-playback-button,
video.login-bg-media::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
}

.login-bg-embed-youtube iframe {
  /* A bit over 1/8th of the player height is chrome at the top and again at the bottom */
  -webkit-transform: translate(-50%, -50%) scale(1.4);
          transform: translate(-50%, -50%) scale(1.4);
}
.site-wrapper-inner {
  display: table-cell;
  vertical-align: top;
}
.cover-container {
  margin-right: auto;
  margin-left: auto;
}

.clickable {
	cursor: pointer;
}

/* Padding for spacing */
.inner {
  padding: 30px;
}


/*
 * Header
 */
.masthead-brand {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.masthead-nav > li {
  display: inline-block;
}
.masthead-nav > li + li {
  margin-left: 20px;
}
.masthead-nav > li > a {
  padding-right: 0;
  padding-left: 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff; /* IE8 proofing */
  color: rgba(255,255,255,.75);
  border-bottom: 2px solid transparent;
}
.masthead-nav > li > a:hover,
.masthead-nav > li > a:focus {
  background-color: transparent;
  border-bottom-color: #a9a9a9;
  border-bottom-color: rgba(255,255,255,.25);
}
.masthead-nav > .active > a,
.masthead-nav > .active > a:hover,
.masthead-nav > .active > a:focus {
  color: #fff;
  border-bottom-color: #fff;
}

.masthead h3 { text-shadow: 2px 2px 2px #333333; }

/* Form styles */

form {
	border-radius: 4px;
	-webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.22);
	-moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.22);
	box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.22);
}

form header {
	border-radius: 4px 4px 0px 0px;
}

form footer {
	border-radius: 0px 0px 4px 4px;
}



.sky-form #forgotpassword {
	margin-left: 0px;
}

.sky-form footer button {
	border-radius: 4px;
}


@media (min-width: 768px) {
  .masthead-nav {
    float: right;
  }
}

.google-2fa-title {
  margin-bottom: 20px;
}

.verify-google-2fa-btn {
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
}


/*
 * Cover
 */

.cover {
  padding: 0 20px;
}
.cover .btn-lg {
  padding: 10px 20px;
  font-weight: bold;
}


/*
 * Footer
 */

.mastfoot {
  color: #999; /* IE8 proofing */
  color: rgba(255,255,255,.5);
}


/*
 * Affix and center
 */

@media (min-width: 768px) {
  /* Pull out the header and footer */
  .masthead {
    position: fixed;
    top: 0;
  }
  .mastfoot {
    position: fixed;
    bottom: 0;
  }
  /* Start the vertical centering */
  .site-wrapper-inner {
    vertical-align: middle;
  }
  /* Handle the widths */
  .masthead,
  .mastfoot,
  .cover-container {
    width: 100%; /* Must be percentage or pixels for horizontal alignment */
  }
}

@media (min-width: 992px) {
  .masthead,
  .mastfoot,
  .cover-container {
    width: 700px;
  }
}
