/*


*/

body {
    /* Overwrite Bootstrap default, prevents scrolling on Xbox */
    overflow-y: auto !important;
}

/* Vertically centers main content (like login forms). Looks better. */
.container {
  justify-content: center;
}

.form-signin {
    max-width: 500px;
    margin: 0 auto;
}
.form-signin .form-signin-heading,
.form-signin .checkbox {
    margin-bottom: 10px;
}
.form-signin .checkbox {
    font-weight: normal;
}
.form-signin .form-control {
    position: relative;
    height: auto;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    font-size: 16px;
}
.form-signin .form-control:focus {
    z-index: 2;
}
.form-signin input[type="email"] {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}


.avatar img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    float: left;
}

.header-logo {
    position: absolute;
    width: auto;
    height: 200%;
    z-index: 100;
    image-rendering: crisp-edges;
}

.header-logo img {
    height: 100%;
    width: auto;
}

.navbar-toggleable-sm > .container {
    height: 46px;
}

.select-2fa {
    list-style: none;
    padding: 0px;
    margin: 0px;
}

.select-2fa li {
    border: 1px solid #fff;
    margin-bottom: 10px;
}

.select-2fa li a {
    display: block;
    height: 60px;
    width: 100%;
    padding: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.select-2fa li img {
    height: 100%;
    width: auto;
}

.social-icons {
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.social-icons form {
  position: relative;
  display: flex;
  flex-basis: 64px;
  flex-shrink: 1;
}

.social-icons form input {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;

    background: transparent;
    border: 0px;
    width: 100%;
    flex-shrink: 1;
    cursor: pointer;
 }

.social-icons form img {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.flash-container {
  position: fixed;

  bottom: 5px;
  left: 5px;
  right: 5px;
}
body.transparent {
    background: transparent;
}

body.flex-body {
    min-height: 100vh;
    width: 100vw;
    overflow: hidden;

    display: flex;
    flex-direction: column;
}

body.flex-body .container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.btn.btn-outline-primary {
    white-space: normal;
}

.form-signin button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-signin button >.ni {
    font-size: 150%;
    margin-right: 8px;
}

/* old safari needs -webkit-flex values to render flexbox layouts properly */
.input-group {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
} /* see jira WS-1987 */
.input-group .form-control {
    -ms-flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 1%;
}
/*
    Un-Scale the view on xbox (specifically WebAuthenticationBroker).
    On a 1920px resolution, Xbox sets the resolution to 960x410, which is too low.
    We increase that to 1280px.

    This *can* affect other MS browsers if they scale to this exact resolution
 */

@media (width: 960px) and (height: 410px) {
    @-ms-viewport {
        width: 1280px;
    }
}
