body,
html {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 13px !important;
  line-height: 1.46668;
  text-rendering: auto;
  font-variant-ligatures: common-ligatures;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background-color: rgb(252, 251, 253);
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  height: 100%;
}

#content {
  display: flex;
  flex-direction: column;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
}

button {
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 2px;
  color: #444;
  cursor: pointer;
  display: block;
  font-size: 22px; /* fallback */
  font-size: var(--mobile-font-size);
  font-weight: 500;
  margin: 3px 0 0 0;
  padding: 10px;
}

button#sign-in {
  margin: 0;
}

button#sign-in:disabled {
  background-color: #ccc;
  color: black;
  cursor: default;
}

button#toggle-password {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 300;
  padding: 0;
  /* Display at the top right of the password section */
  position: absolute;
  top: -4px;
  right: -2px;
}

div#password-constraints {
  margin: 5px 0 0 0;
  font-size: 16px;
}

form {
  margin: 0 auto;
  max-width: 500px;
}

#logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#secondary-logo {
  width: 100%;
  max-width: 200px;
}

img#main-logo {
  width: 100%;
  max-width: 178px;
}

#powered-by img#main-logo {
  width: 100px;
}

#powered-by {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

#consynsys-product {
  position: absolute;
  bottom: 32px;
}

div#content::after {
  content: '';
  display: inline-block;
  margin-top: 1rem;
}

.form-control {
  font-family: "Source Sans Pro", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
  font-size: 1rem;
  color: rgb(17, 17, 17);
  box-sizing: border-box;
  position: relative;
  cursor: text;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  line-height: 1.75rem;
  width: 100%;
  padding: 0;
  margin: 1.5rem 0px 0px;
  display: flex;
  flex-direction: column;
}

form {
  width: 100%;
}

.input-label + .input-base {
  margin-top: 1.5rem;
}

.input-base {
  font-family: "Source Sans Pro", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
  font-size: 1rem;
  color: rgb(17, 17, 17);
  box-sizing: border-box;
  position: relative;
  cursor: text;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  line-height: 1.75rem;
  width: 100%;
}

.input-label { 
  font-family: "Source Sans Pro", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.4375em;
  padding: 0px;
  transform-origin: left top;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(133% - 24px);
  position: absolute;
  left: 0px;
  top: 0px;
  transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
  z-index: 1;
  pointer-events: auto;
  user-select: none;
  color: rgb(72, 72, 72);
  font-size: 1.125rem;
  font-weight: 400;
  width: 100%;
  display: flex;
  -webkit-box-pack: justify;
  justify-content: space-between;
  transform: translate(0px, -2px) scale(1);
}

.input-button {
  margin-top: 1.5rem;
}

.message {
  margin-top: 1rem;
  text-align: center;
}

.message.error {
  color: rgb(240, 84, 82);
}

h1 {
  border-bottom: 1px solid #ccc;
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding: 0 0 5px 0;
}

input {
  border: 1px solid #ccc;
  font-size: 22px; /* fallback */
  font-size: var(--mobile-font-size);
  padding: 15px;
  width: 90%; /* fallback */
  width: calc(100% - 30px); /* full width minus padding */
}

input::placeholder {
  color: #A0AEC0;
  opacity: 1;
  font-weight: 400;
}

input[type=email]:not(:focus):invalid,
input[type=password]:not(:focus):invalid {
  color: red;
  outline-color: red;
}

label {
  display: block;
  font-size: 20px;
  font-size: var(--mobile-font-size);
  font-weight: 500;
  margin: 0 0 3px 0;
}

/* Stolen styles from UserInterface repository */

button, input[type=button] {
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  outline: 0px;
  border: 0px;
  margin: 0px;
  cursor: pointer;
  user-select: none;
  vertical-align: middle;
  appearance: none;
  text-decoration: none;
  font-family: "Source Sans Pro", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.75;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, border-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
  width: 100%;
  border-radius: 3px;
  font-size: 1.125rem;
  min-height: 2.75rem;
  padding: 4px 16px;
  min-width: auto;
  text-transform: none;
  white-space: nowrap;
  font-weight: 600;
  color: rgb(255, 255, 255);
  box-shadow: none;
  background: radial-gradient(circle at left top, rgb(156, 77, 188) 0%, rgb(112, 47, 138) 100%);
}

button:hover, input[type=button]:hover {
  box-shadow: none;
  background: linear-gradient(to right, rgb(108, 50, 131) 0%, rgb(108, 50, 131) 100%);
}

#content {
  width: 90%;
  max-width: 436px;
  padding: 30px 40px 12px;
  border-radius: 3px;
  border: 1px solid rgb(235, 244, 249);
  background: rgb(255, 255, 255);
  margin: 16px 0px;
}

input[type='text'],
input[type='email'],
input[type='password'] {
  border-radius: 3px;
  position: relative;
  font-weight: 600;
  border: 1px solid rgb(235, 244, 249);
  font-size: 1.125rem;
  line-height: 1.1876em;
  width: 100%;
  padding: 10px 12px;
  transition: border-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.subtitle {
  margin: 0px 0px 1.75rem;
  line-height: 1.75;
  font-size: 1.5rem;
  color: rgb(72, 72, 72);
  text-align: center;
  font-weight: 600;
}

/* removing browser specific style on inputs */
input[type='text'],
input[type='email'],
input[type='password'],
input[type='submit'],
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
/* Scrollbar */
::-webkit-scrollbar {
  width: 24px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #eaeef3;
  border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background-color: #c0cdda;
  border-radius: 0;
  border: 2px solid #c0cdda;
  height: 12px;
}
* {
  scrollbar-width: thin;
  scrollbar-color: #c0cdda #eaeef3;
}
img {
  max-width: 100%;
}
fieldset {
  border: none;
}
