/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:wght@100;300;400;500;700;800;900&display=swap');

/* CSS variables */
:root {
  --font-family: "Alegreya Sans";
  --color-bg: #EAEEF1; 
  --color-primary: #00DE8F;
  --color-secondary: #001741;
  --color-default: #495366;
  --card-bg-color: #FFFFFF;
  --button-bg-color: #00DE8F;
  --button-text-color: #FFFFFF;
}

/* Basic page style resets */
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-family), sans-serif;
  background-color: var(--color-bg);
  margin: 0;
}

body > div, body > div > div {
  height: 100%;
}

.background-image {
  z-index: 1;
  overflow: hidden; 
  position: absolute; 
  right: 0;
  bottom: 0;
  left: 0; 
}

.background-image > img {
  object-fit: contain; 
  object-position: center; 
  width: 100%; 
  height: 100%; 
}

.navbar {
  display: flex; 
  align-items: center; 
  height: 4rem; 
  padding-left: 1rem;
  padding-right: 1rem; 
  max-width: 80rem; 
}

.logo {
  z-index: 2;
  position: relative;
  height: 2.25rem;
}

.wrapper {
  position: relative; 
  background-color: var(--color-bg); 
  height: 100%;
}

.content {
  z-index: 2;
  display: flex; 
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  padding-left: 1rem;
  padding-right: 1rem;
  flex-direction: column; 
  justify-content: center;
  align-items: center;
}

.card-wrapper {
  margin-top: 2rem; 
}

.card {
  text-align: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem; 
  padding-top: 2rem;
  padding-bottom: 2rem; 
  background-color: #ffffff; 
  border-radius: 0.5rem; 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); 
}


h1 {
  color: var(--color-secondary); 
  font-size: 2rem;
  line-height: 2.25rem; 
  font-weight: 700; 
  letter-spacing: -0.025em; 
}

h1 > span {
  display: block; 
  color: var(--color-primary); 
}

p,
.screen-error p.error-description {
  color: var(--color-default); 
  margin-top: 0.5rem; 
  font-size: 0.875rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.screen-error p {
  color: #A6B4C3; 
  margin-top: 0.5rem; 
  font-size: 0.875rem;
  line-height: 1.75rem;
  font-weight: 400;
}

.screen-error p.error-description > span {
  font-weight: 800;
  color: var(--color-secondary);
}

.badge {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}

.cryptr-badge {
  height: 2rem;
}

form > div > label {
  display: block; 
  color: var(--color-default); 
  font-size: 1rem;
  line-height: 1.25rem; 
  font-weight: 400; 
  text-align: left
}

form > div > div > input {
  background-color: #ffffff;
  border: 1px solid #eaeef1;
  border-radius: 8px;
  color: #001741;
  display: block;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  padding: 0.91rem;
  width: 100%;
  appearance: none;
  outline: none;
  transition: .2s ease-in-out;
  margin-bottom: 1.25rem;
}

form > div > div > input:focus {
  outline-color: #00de8f;
  box-shadow: 0 0 0 4px rgba(0,222,143,.15), inset 0 0 0 1px #00de8f;
}

::placeholder {
  color: #4B5364;
  font-size: 1rem;
}

form > div > span.invalid-feedback {
  display: inline-block;
  margin-top: 0.5rem; 
  color: #DC2626; 
  font-size: 1rem;
  line-height: 1.25rem; 
  text-align: left;
  width: 100%;
}

form > div > span.invalid-feedback:last-child {
  margin-bottom: 1.25rem;
}

input.password-error, 
input.email-error {
  border: 1px solid #EF4444;
  color: #7F1D1D; 
  margin-bottom: 0;
}

input.password-error::placeholder, 
input.email-error::placeholder { 
  color: #E5C4C4;
}

input.password-error:focus,
input.email-error:focus {
  box-shadow: 0 0 0 4px rgb(222 0 0 / 15%), inset 0 0 0 0px #BA1820;
}

/* separator_text - start */
form > div:nth-of-type(2) {
  position: relative; 
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

form > div:nth-of-type(2) div:nth-child(1) {
  display: flex; 
  position: absolute; 
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; 
  align-items: center; 
}


form > div:nth-of-type(2) div:nth-child(2) {
  display: flex; 
  position: relative; 
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25rem; 
  justify-content: center; 
}

form > div:nth-of-type(2) div:nth-child(1) > div {
  width: 100%; 
  margin-top: 0.5rem;
  border-top: 0.063rem solid #eaeef1;
}

form > div:nth-of-type(2) div:nth-child(2) > span {
  padding-left: 0.5rem;
  padding-right: 0.5rem; 
  background-color: var(--card-bg-color); 
  color: var(--color-default); 
}
/* separator_text - end */

form > button, form > a {
  width: 100%;
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  background-color: var(--button-bg-color); 
  color: var(--button-text-color); 
  line-height: 1.2;
  font-weight: 700;
  border-radius: 6px;
  font-size: 16px;
  padding: 13px 25px;
  text-decoration: none;
  transform: scale(1);
  transition: box-shadow,background-image,background-color,transform;
  transition-duration: .1s;
  transition-timing-function: ease-in-out;
  user-select: none;
  vertical-align: middle;
  cursor: pointer;
  border: 2px solid transparent;
  outline: none;
  overflow: hidden;
}

form > a {
  border-color: #793ef1;
  color: #793ef1;
  border: 2px solid;
  background: none;
}

form > button:active, form > a:active {
  transform: scale(.93);
  transition-duration: .05s;
}

form > button:hover, form > a:hover {
  text-decoration: none;
  transform: scale(1.07);
}

form > a:hover {
  background: #793ef1;
  color: #FFFFFF;
}

.screen-error #cryptr-widget > p > a {
  color: var(--color-primary); 
  font-weight: 700; 
  text-decoration: none;
}

.screen-error #cryptr-widget > p > a:hover {
  color: #A4E9D4; 
}

/* Responsive */

/* Tablet */
@media (min-width: 640px) { 
  .navbar {
    padding-left: 1.5rem;
    padding-right: 1.5rem; 
  }
  .content {
    padding-left: 1.5rem;
    padding-right: 1.5rem; 
    width: 100%; 
    margin-right: auto;
    margin-left: auto;
    max-width: 28rem; 
  }
  .card-wrapper {
    width: 100%; 
    max-width: 28rem; 
  }
  .card {
    padding-left: 2.5rem;
    padding-right: 2.5rem; 
    border-radius: 0.5rem; 
  }
}

/* Laptop */
@media (min-width: 1024px) { 
  .navbar {
    padding-left: 2rem;
    padding-right: 2rem; 
  }
  .content {
    padding-left: 2rem;
    padding-right: 2rem; 
    width: 100%; 
    margin-right: auto;
    margin-left: auto;
    max-width: 32rem; 
  }
}