body,
html {
  padding: 0;
  margin: 0;
}

html {
  background: #2C65B0;
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #1a1a1a;
}

a,
a:active,
a:visited {
  font-size: 0.8rem;
  color: #2c64b1;
  text-decoration: none;
}

/* Form */
.form-group {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.7rem;
  color: #666;
  font-weight: bold;
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  display: block;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  width: calc(100% - 1rem);
  height: 2.5rem;
  background: #f8f8f8;
  border: 1px solid #e6e6e6;
  border-radius: 0.1rem;
}

input[type="text"]:active,
input[type="text"]:focus,
input[type="email"]:active,
input[type="email"]:focus,
input[type="password"]:active,
input[type="password"]:focus {
  background: #ffffff;
}

input {
  border-radius: 2px !important;
}

.submit-button {
  display: block;
  width: 100%;
  height: 2.8rem;
  margin-top: 2rem;
  cursor: pointer;
  background: #2C65B0;
  border: unset;
  border-radius: 0.2rem;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}

.submit-button-secondary {
    display: block;
    width: 100%;
    height: 2.8rem;
    margin-top: 2rem;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid #2C65B0;
    border-radius: 0.2rem;
    color: #2C65B0;
    font-weight: bold;
    font-size: 1.1rem;
}

.submit-button:active {
  background: #224c87;
}

.submit-button:disabled {
  background: #999;
  cursor: not-allowed;
}

/* Elements */
#wrapper {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  min-height: 550px;
  width: 400px;
  position: relative;
}

@media screen and (max-width: 533px) {
  .container {
    width: 75%;
  }
}

#optimy-logo {
  max-height: 60px;
}

#form-error-message-container {
  background: #fbdcdf;
  padding: 1rem;
  border: 1px solid #eb5261;
  border-radius: .2rem;
  text-align: left;
  font-size: 0.9em;
}

.card {
  padding: 3rem 1.5rem;
  padding-bottom: 2rem;
  background: white;
  border-radius: 0.3rem;
  box-shadow: 0 6px 8px rgba(33,33,55,.3), 0 10px 20px rgba(33,33,55,0.5);
}

.card--header {
  margin-bottom: 3rem;
}

.card--error {
  color: #e00000;
}

/* Helper */
.text-white,
a.text-white {
  color: white;
}

.text-gray,
a.text-gray {
  color: #999;
}

.text-xs {
  font-size: 0.625rem;
}

.text-sm {
  font-size: 0.8rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 2rem;
}

.mt-4 {
  margin-top: 3rem;
}

.text-align-center {
  text-align: center;
}

.text-align-right {
  text-align: right;
}

.btn-loading {
  opacity: .5;
  pointer-events: none;
}

.login-spinner-parent {
  position: relative;
}

#loading-spinner {
  visibility: hidden;
  position: absolute;
  right: 1em;
}

#language-dropdown {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

#language-dropdown:hover .dropdown-toggle{
  color: #2c64b1;
}

#language-label {
  margin-right: 0.2em;
}

.btn-group {
  position: relative;
}

.dropdown-toggle {
  background: none;
  border: none;
  font-size: 0.8em;
  color: #999;
  cursor: pointer;
  outline: none;
  padding: 1em;
}

.dropdown-menu {
  display: none;
  list-style: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding: 0;
  margin: 0;
  min-width: 80px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 3px 6px #e6e6e6;
  border: 1px solid #e6e6e6;
}

.dropdown-menu a {
  display: block;
  padding: 5px 10px;
  background: #fff;
  color: #999;
  transition: 0.3s;
  text-align: left;
  cursor: pointer;
}

.dropdown-menu a:hover {
  background: #f8f8f8;
}

.caret {
  display: inline-block;
  height: 0.2em;
  width: 0.2em;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-0.2em);
}

#language-dropdown:hover .dropdown-toggle:disabled,
.dropdown-toggle:disabled {
  pointer-events: none;
  color: #999;
}

.dropdown-toggle:disabled .caret {
  display: none
}

.text-danger {
  color: #dc3545;
}

.border-danger, .border-danger:focus {
  border-color: #dc3545 !important;
  outline: none;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
  background: #f8f8f8 !important;
}

[for|=user-email-recovery] {
  color: #333333;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.reset-password-header {
  font-weight: 600;
  font-size: 24px;
  color: #212529;
  font-family: 'Nunito Sans';
  margin-bottom: 12px;
}

.fs-6 {
  font-size: 14px;
}

.container-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-decoration-underline {
  text-decoration: underline;
}

.d-none {
  display: none !important;
}

#invalid-email, #invalid-password {
  display: block;
  height: 1.4em;
}
