/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');


/* CSS variables */
:root {
  --color-bg: #F8F8F8;
  --color-default: #606060;
  --color-primary: #00EB84;
  --color-secondary: #222321;
}

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

html, body {
  height: 100%;
}

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

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

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

.content {
  padding-top: 4rem; 
  padding-bottom: 5rem; 
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  text-align: center; 
  width: 100%;
  max-width: 80rem;
}

.card {
  margin-top: 8rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: 1rem;
  padding-right: 1rem; 
  background-color: #FFFFFF;
  border-radius: 16px;
  filter: drop-shadow(rgba(0, 0, 0, 0.08) 0px 2px 6px);
}

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

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

p {
  margin-top: 0.75rem; 
  color: var(--color-default); 
  font-size: 0.75rem;
  line-height: 1rem;
}

.screen-enroll-totp p > a {
  color: #00eb84;
  text-decoration: none;
  transition: color 200ms cubic-bezier(.55, .085, .68, .53);
}

.screen-enroll-totp p > a:hover {
  color: #222321;
  outline: 0;
}

.screen-error p {
  color: var(--color-default); 
  font-size: 0.75rem;
  line-height: 1rem;
}

.screen-error p.error-description {
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

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

.screen-error #cryptr-widget > p {
  width: 100%;
  margin-top: 0.75rem;
  color: var(--color-default);
  font-size: 0.75rem;
  line-height: 1rem;
}

.screen-error #cryptr-widget > p > a {
  align-items: center;
  color: #00eb84;
  text-decoration: none;
  transition: color 200ms cubic-bezier(.55, .085, .68, .53);
}

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

.image-wrapper {
  position: relative; 
  width: 100%; 
  height: 16rem; 
  display: none;
}

.cover-image {
  object-fit: cover; 
  position: absolute; 
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; 
  width: 100%; 
  height: 100%; 
}

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

.cryptr-badge {
  height: 2rem;
}

.logo {
  height: 2.5rem; 
  margin-bottom: 2rem; 
}

.screen-magic-link-request #cryptr-widget > div:first-of-type,
.screen-challenge-password #cryptr-widget > div:first-of-type {
  display: flex;
  flex-direction: column;
  align-items: space-between;
  gap: 20px;
  width: 100%;
}

.screen-magic-link-request #cryptr-widget > div:first-of-type > a > svg,
.screen-challenge-password #cryptr-widget > div:first-of-type > a > svg {
  margin-right: 0.5rem; 
  width: 1.25rem; 
  height: 1.25rem;
}

.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(1) > svg > path,
.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(2) > svg > path:nth-child(2),
.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(2) > svg > path:nth-child(3),
.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(2) > svg > path:nth-child(4),
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(1) > svg > path,
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(2) > svg > path:nth-child(2),
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(2) > svg > path:nth-child(3),
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(2) > svg > path:nth-child(4) {
  fill: var(--color-secondary);
  transition: all 0.2s ease-in 0s;
}

.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(1):hover svg > path,
.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(2):hover svg > path:nth-child(2),
.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(2):hover svg > path:nth-child(3),
.screen-magic-link-request #cryptr-widget > div:first-of-type > a:nth-child(2):hover svg > path:nth-child(4),
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(1):hover svg > path,
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(2):hover svg > path:nth-child(2),
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(2):hover svg > path:nth-child(3),
.screen-challenge-password #cryptr-widget > div:first-of-type > a:nth-child(2):hover svg > path:nth-child(4) {
  fill: #26E888;
}

.screen-magic-link-request #cryptr-widget > div:first-of-type > a,
.screen-challenge-password #cryptr-widget > div:first-of-type > a {
  color: #1d1d1b;
  transition: all 0.2s ease-in 0s;
  background-color: transparent;
  border: 2px solid #1d1d1b;
}

.screen-magic-link-request #cryptr-widget > div:first-of-type > a:hover,
.screen-challenge-password #cryptr-widget > div:first-of-type > a:hover {
  color: #26E888;
  border-color: #26E888;
}

.screen-enroll-totp #cryptr-widget svg {
  background-color: transparent !important;
  border-radius: 0.5rem;
  width: 12rem;
  height: auto;
}

.screen-enroll-totp #cryptr-widget > div > svg > rect.transparent {
  fill: transparent;
}

.screen-enroll-totp #cryptr-widget > div > svg > rect.dark {
  fill: var(--color-secondary);
}

.screen-recovery-totp #cryptr-widget {
  text-align: center;
}

.screen-recovery-totp #cryptr-widget > form > div:first-of-type {
  border-radius: 6px;
  background: #E4FBEE;
  padding: 1.25rem;
}

.screen-recovery-totp #cryptr-widget > form > div:first-of-type > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  text-align: left;
  margin-bottom: 0.875rem;
}

.screen-recovery-totp #cryptr-widget > form > div:first-of-type > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.screen-recovery-totp #cryptr-widget > form > div:first-of-type > div:first-of-type > div > span {
  font-weight: 600;
}

.screen-recovery-totp #cryptr-widget > form > div:first-of-type > div:first-of-type > svg {
  height: auto;
  width: 3rem;
  color: var(--color-secondary);
  opacity: 0.8;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.screen-recovery-totp textarea {
  width: 100%;
  align-content: center;
  background-color: #ffffff;
  border: 1px solid #AEAEAE;
  resize: none;
  border-radius: 6px;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-family: var(--font-family), sans-serif;
  font-weight: normal;
  line-height: 200%;
  overflow: hidden;
}

.screen-recovery-totp div.checkbox {
  display: flex; 
  position: relative; 
  align-items: start;
}

.screen-recovery-totp div.checkbox > div:nth-child(1) {
  display: flex; 
  align-items: center; 
  height: 1.5rem; 
}

.screen-recovery-totp div.checkbox > div > input {
  border-radius: 0.25rem; 
  border: 1px solid #E7E7E8;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.06);
  width: 1rem; 
  height: 1rem;
  color: #2D2D2D;
  margin: 0;
}

.screen-recovery-totp div.checkbox > div > input:focus {
  background-color: #FAFAFB;
  box-shadow: none;
}

.screen-recovery-totp #cryptr-widget > form {
  margin-top: 1.5rem; 
}

.screen-recovery-totp div.checkbox > div:nth-child(2) {
  margin-left: 0.75rem; 
  font-size: 0.75rem;
  line-height: 1rem; 
  color: #6B7280; 
  text-align: left;
}

.screen-recovery-totp div.checkbox > div:nth-child(2) > span {
  font-weight: 800; 
}

.screen-magic-link-request form > div:last-child > a,
.screen-challenge-password form > div:last-child > a,
.screen-password form > div:last-child > a,
.screen-create-password form > div:last-child > a,
.screen-reset-password form > div:last-child > a,
.screen-password form > div:first-of-type > a {
  display: flex;
  align-items: center;
  color: #00eb84;
  text-decoration: none;
  transition: color 200ms cubic-bezier(.55, .085, .68, .53);
}

.screen-magic-link-request form > div:last-child > a:hover,
.screen-challenge-password form > div:last-child > a:hover,
.screen-password form > div:last-child > a:hover,
.screen-create-password form > div:last-child > a:hover,
.screen-reset-password form > div:last-child > a:hover,
.screen-password form > div:first-of-type > a:hover {
  color: #222321;
  outline: 0;
}

.screen-password form > div:first-of-type {
  margin-bottom: 2.875rem;
}

.screen-magic-link-request form > div:last-child,
.screen-challenge-password form > div:last-child,
.screen-password form > div:last-child,
.screen-create-password form > div:last-child,
.screen-reset-password form > div:last-child {
  margin-top: 2.875rem;
  font-size: 16px;
  line-height: 1.2; 
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

form > div:first-of-type {
  width: 100%;
}

.screen-enroll-totp form > div:first-of-type {
  margin-top: 1.5rem;
}

form > div > label {
  display: block; 
  font-size: 12px;
  color: #1D1D1B;
  text-align: left;
  margin-bottom: 0.375rem;
}

form > div > div > input {
  width: 100%;
  height: 44px;
  padding: 12px 16px;
  color: rgb(29, 29, 27);
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(226, 226, 226);
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

form > div > div > input:focus {
  color: rgb(29, 29, 27);
  background-color: rgb(255, 255, 255);
  outline-color: rgb(29, 29, 27);
}

::placeholder {
  color: #E2E2E2;
  font-size: 0.8rem;
}

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

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

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

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

input.password-error:focus,
input.email-error:focus {
  outline-color: #EF4444;
}

hr {
  border: 0;
  position: relative; 
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.divider {
  width: 100%; 
  border-top: 1px solid #E2E2E2;
}

/* separator_text - start */
form > div:nth-of-type(2),
.screen-magic-link-request #cryptr-widget > div:nth-of-type(2),
.screen-challenge-password #cryptr-widget > div:nth-of-type(2) {
  position: relative; 
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.screen-recovery-totp form > div:nth-of-type(2),
.screen-create-password form > div:nth-of-type(2),
.screen-magic-link-request form > div:nth-of-type(2),
.screen-challenge-password  form > div:nth-of-type(2),
.screen-reset-password  form > div:nth-of-type(2) {
  margin-bottom: 0;
}

.screen-password form > div:nth-of-type(2) {
  margin: 0;
}

form > div:nth-of-type(2) div:nth-child(1),
.screen-magic-link-request #cryptr-widget > div:nth-of-type(2) div:nth-child(1),
.screen-challenge-password #cryptr-widget > div:nth-of-type(2) div:nth-child(1) {
  display: flex; 
  position: absolute; 
  top: 0;
  right: 0;
  bottom: 0;
  left: 0; 
  align-items: center; 
}

.screen-recovery-totp #cryptr-widget form > div:nth-of-type(2) div:nth-child(1) {
  display: initial;
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  align-items: initial;
}

form > div:nth-of-type(2) div:nth-child(2),
.screen-magic-link-request #cryptr-widget > div:nth-of-type(2) div:nth-child(2),
.screen-challenge-password #cryptr-widget > div:nth-of-type(2) div:nth-child(2) {
  display: flex; 
  position: relative; 
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.25rem; 
  justify-content: center; 
}

.screen-recovery-totp #cryptr-widget form > div:nth-of-type(2) div:nth-child(2) {
  display: initial;
  position: static;
  font-weight: initial;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--color-default);
  justify-content: initial;
}

form > div:nth-of-type(2) div:nth-child(1) > div,
.screen-magic-link-request #cryptr-widget > div:nth-of-type(2) div:nth-child(1) > div,
.screen-challenge-password #cryptr-widget > div:nth-of-type(2) div:nth-child(1) > div {
  width: 100%; 
  margin-top: 0.5rem;
  border-top: 1px solid #E2E2E2;
}

form > div:nth-of-type(2) div:nth-child(2) > span,
.screen-magic-link-request #cryptr-widget > div:nth-of-type(2) div:nth-child(2) > span,
.screen-challenge-password #cryptr-widget > div:nth-of-type(2) div:nth-child(2) > span {
  padding-left: 0.5rem;
  padding-right: 0.5rem; 
  background-color: #FFFFFF; 
  color: var(--color-default); 
}

.screen-recovery-totp #cryptr-widget form > div:nth-of-type(2) div:nth-child(2) > span {
  padding-left: initial;
  padding-right: initial;
  background-color: transparent;
  color: var(--color-default);
}
/* separator_text - end */

.screen-password form > div:nth-of-type(2),
.screen-password form > div:nth-of-type(3) {
  width: 100%;
}

form > button, 
form > a, 
.screen-magic-link-request #cryptr-widget > div:first-of-type > a,
.screen-challenge-password #cryptr-widget > div:first-of-type > a,
.screen-recovery-totp form textarea + a {
  cursor: pointer;
  text-align: center;
  width: 100%;
  display: inline-flex; 
  justify-content: center; 
  align-items: center;
  border-radius: 9999px; 
  padding: 11px 25px;
  font-size: 0.875rem;
  line-height: 1.25rem; 
  font-weight: 400; 
  border-radius: 70px;
  text-decoration: none;
}

.screen-recovery-totp button, 
.screen-recovery-totp form > a,
.screen-recovery-totp form textarea + a {
  margin-top: 1.5rem;
}

form textarea + a > svg {
  display: block;
  color: var(--color-secondary);
  height: 0.75rem;
  width: 0.75rem;
  margin-right: 0.75rem;
}

form > button, form > a, form textarea + a {
  background-color: var(--color-primary); 
  color: #FFFFFF; 
  border: 1px solid transparent;
  transition: background-color 200ms cubic-bezier(.55, .085, .68, .53), transform 200ms cubic-bezier(.55, .085, .68, .53), -webkit-transform 200ms cubic-bezier(.55, .085, .68, .53);
}

form > button:hover {
  background-color: var(--color-secondary);
  transform: translate(0px, -3px);
}

form > a,
form textarea + a {
  background-color: var(--color-secondary); 
}

.screen-magic-link-request form > a,
.screen-challenge-password form > a,
.screen-password form > a {
  margin-top: 1.5rem;
}

form > a:hover,
form textarea + a:hover {
  transform: translate(0px, -3px);
}

/* Responsive */

@media (min-width: 640px) { 
  h1 > span {
    display: inline; 
  }
  .card {
    padding-left: 3rem;
    padding-right: 3rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 768px) { 
  h1 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
  form > button, 
  form > a,
  .screen-magic-link-request #cryptr-widget > div:first-of-type > a,
  .screen-challenge-password #cryptr-widget > div:first-of-type > a,
  .screen-recovery-totp form textarea + a {
    font-size: 	1rem;
  }
  main {
    position: relative; 
  }
  .content {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem; 
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: start;
  }
  .card {
    width: 60%;
    z-index: 10;
  }
  .image-wrapper {
    display: block;
    position: absolute; 
    top: 0;
    bottom: 0; 
    right: 0; 
    width: 60%; 
    height: 100%; 
  }
}

@media (min-width: 1024px) { 
  .card {
    width: 50%;
  }
  .image-wrapper {
    width: 80%; 
  }
}