html, body {
  width: 100%;
  height: 100%;
}

* {
  font-family: 'Open Sans', sans-serif;
}

*:focus,
*:active {
  outline: 0 !important;
}

label {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body {
  background-image: url('/static/login-bg.png');
  background-position: center top;
  background-repeat: no-repeat;
  height: 100%;
  background-size: cover;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  /*align-items: center;*/
}

html {
  padding: 0;
  margin: 0;
}

.form-container {
  color: #fff;
}

.form-container a {
  color: #fff;
}

h1, h2 {
  text-align: center;
  color: #fff;
  margin: 0;
  padding: 0;
}

h2 {
  margin-bottom: 20px;
}

#content {
  margin-left: auto;
  margin-right: auto;
  float: none;
  margin-top: 5%;
  width: 500px;
}

#form-screen {
  padding: 20px;
  top: 15%;
  /*margin-top: 20px;*/
  /*margin-bottom: 20px;*/
  background-color: #2e6da4;
  width: 460px;
  height: 256px;
}

button[type="submit"] {
  margin-top: 10px;
  background-color: #286090;
  border-color: #286090;
}

button[type="submit"]:hover,
button[type="submit"]:focus,
button[type="submit"]:active {
  outline: 0;
  border-color: #286090;
  background-color: #286090;
}

.form-control,
.form-control:focus,
.form-control:active,
.form-control:-webkit-autofill {
  box-shadow: none;
  transition: none 0s ease 0s !important;
  border: 0;
  border-bottom: thin solid #aaa;
}

.form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
  margin-top: 0 !important;
}

input.error,
select.error {
  border-bottom-color: #f00 !important;
}

.form-control:focus,
.form-control:active {
  border-bottom-color: #2e6da4;
}

.btn-group-vertical {
  width: 100%;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  text-align: left;
  user-select: text;
  -moz-user-select: text;
  -webkit-user-select: text;
  cursor: auto !important;
}

input[name="email"] {
  border-radius: 4px 4px 0 0;
  font-size: 15px;
}

input[name="password"] {
  border-radius: 0 0 4px 4px;
}

div.checkbox {
  margin-bottom: 0;
  color: #fff;
  padding-left: 17px;
}

input[type="checkbox"] {
  color: #2e6da4;
  border: 0;
}

input[type="checkbox"]:focus,
input[type="checkbox"]:active {
  outline: 0 !important;
}

.additional {
  font-size: 12px !important;
}

.reg {
  text-align: center;
}

.checkbox label {
  white-space: nowrap;
  padding-left: 17px;
}

label a {
  font-weight: bold;
}

.errorlist {
  border-color: rgba(194, 225, 245, 0) rgba(0, 0, 0, 0.35) rgba(194, 225, 245, 0) rgba(194, 225, 245, 0);
  border-width: 4px;
  background: none repeat scroll 0 0 rgba(0, 0, 0, 0.6);
  border: 0 solid #C1C1C1;
  border-radius: 3px 3px 3px 3px;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  visibility: visible;
  width: -moz-max-content;
  width: -webkit-max-content;
  width: max-content;
  min-width: fit-content;
  z-index: 1030;
  position: absolute;
  left: 103%;
  margin-top: -27px;
  padding-left: 5px;
  padding-right: 5px;
  box-sizing: initial;
  font-weight: normal;
}

#agree-error {
  margin-top: 0;
  left: 103%;
  margin-left: -20px;
}

.errorlist:after,
.errorlist:before {
  border: medium solid rgba(0, 0, 0, 0);
  bottom: auto;
  content: " ";
  height: 0;
  left: auto;
  pointer-events: none;
  position: absolute;
  right: 100%;
  top: 50%;
  width: 0;
}

.errorlist:after {
  border-color: rgba(194, 225, 245, 0) rgba(0, 0, 0, 0.35) rgba(194, 225, 245, 0) rgba(194, 225, 245, 0);
  border-width: 4px;
  margin-top: -4px;
}

.errorlist li {
  min-width: fit-content;
  white-space: nowrap;
  width: max-content;
}

.spinner {
  display: none;

  -webkit-transition: opacity 0.25s, max-width 0.45s;
  -moz-transition: opacity 0.25s, max-width 0.45s;
  -o-transition: opacity 0.25s, max-width 0.45s;
  transition: opacity 0.25s, max-width 0.45s; /* Duration fixed since we animate additional hidden width */
}

.has-spinner.active .spinner {
  display: inline-block;
  max-width: 50px; /* More than it will ever come, notice that this affects on animation duration */
}

#languages {
  border: 0;
  background-color: #f5f5f5;
  text-align: left;
  width: 160px;
}

#languages span {
  float: left;
  display: inline;
}

#languages i {
  float: right;
  display: inline;
}

.open #languages {
  border-top: 1px solid #e3e3e3;
  border-radius: 0 0 4px 4px;
}

.dropup .dropdown-menu {
  border-radius: 4px 4px 0 0;
  box-shadow: none;
  margin-bottom: -2px;
  border: 0;
  border-bottom: 1px solid #e3e3e3;
  text-align: left;
  background: #f5f5f5;
}

.dropdown-menu > li > a:hover,
.dropdown > li > a:focus {
  background: #e3e3e3;
}

.dropup .dropdown-menu li a {
  padding-left: 12px;
}

html[lang=he] {
  writing-mode: rl-tb !important;
}

.modal-header h4,
.modal-header button {
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.modal-header h4 {
  padding: 10px;
  font-size: 18px;
  margin-top: 0;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
}

.modal-header,
.modal-footer {
  border: 0;
}

.modal-body {
  overflow-y: scroll;
  padding-top: 0;
}

.errorlist {
  list-style: none;
}

@media screen and (max-width: 500px) {
  #form-screen {
    width: 80%;
  }
}