html,
body {
  height: 100%;
}

body {
  display: -ms-flexbox;
  display: -webkit-box;
  display: flex;
  -ms-flex-align: center;
  -ms-flex-pack: center;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: #f5f5f5;
}

.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: 0 auto;
}
.form-signin .checkbox {
  font-weight: 400;
}
.form-signin .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
/*  text-align-last: center;*/
}
.form-signin .form-control:focus {
  z-index: 2;
}
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

@media (min-width: 576px) {
    .col-sm-4 {
        text-align: right;
        padding-right: 0;
    }
}

#chreos-border {
    border-width: thin;
    border: 1px solid;
    border-color: #D3D3D3;
    /*#FF8000;*/
    margin: 1% 1% 1% 1%;
}

#chreos-form_space {
    margin-top: 10%;
    margin-bottom: 10%;
}

#chreos-modal-footer {
    padding-bottom: 1rem;
    padding-top: 0;
    border-top: none;
}

#chreos-modal-header {
    border-bottom: 3px #ff9b38;
    background: #ff9b38;
    /*#a9a9a9;*/
    border-radius: 0;
}

#chreos-modal-content {
    border: 3px solid #ff9b38;
}

/* Important part */
.modal-dialog{
    top: 20%;
    /*bottom: 20%;*/
    overflow-y: initial !important
}

.chreosLoginText {
    position: absolute;
    top: 100px;
}



/* Start by setting display:none to make this hidden.
   Then we position it in relation to the viewport window
   with position:fixed. Width, height, top and left speak
   for themselves. Background we set to 80% white with
   our animation centered, and no-repeating */
.loading-modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background: rgba( 255, 255, 255, .8 ) 
                url('../images/ajax_loader_light_theme.gif') 
                50% 50% 
                no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading .loading-modal {
    overflow: hidden;   
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .loading-modal {
    display: block;
}