  /* CSS variables */
  :root {
    --font-family: "Montserrat";
    --primary-color: #232323;
  }

  /* 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: #ffffff;
    margin: 0;
  }

  .wrapper {
    display: flex;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    justify-content: center;
    align-items: center;
    min-height: 100%;
  }

  .content {
    width: 100%;
    max-width: 22rem;
    text-align: center;
  }

  .header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 3.625rem;
  }

  .header > a  {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .header > a > img,
  .header img {
    margin-top: 0;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    height: 1.25rem;
  }

  .header > h1 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #2D2D2D;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    text-align: center;
  }

  .header > h1 > span {
    display: block;
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #717179;
    font-size: 1.125rem;
    line-height: 1.375rem;
    font-weight: 400;
    text-align: center;
  }

  form > p {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1rem;
    text-align: center;
    letter-spacing: 0.005em;
    color: #86868D;
    margin-top: 0.75rem;
    margin-bottom: 0;
  }

  form {
    margin-top: 2rem;
    margin-top: 1.5rem;
  }

  form > div > label {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.005em;
    color: #5C5B5E;
    text-align: left;
    margin-bottom: 0.75rem;
  }

  form > div > div > input {
    position: relative;
    background: transparent;
    border: 1px solid #E7E7E8;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.06);
    border-radius: 0.25rem;
    color: #2D2D2D;
    display: block;
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1rem;
    letter-spacing: 0.005em;
    padding: 0.625rem;
    width: 100%;
    appearance: none;
    outline: none;
    transition: all .3s ease;
    margin-bottom: 1.5rem;
  }

  form > div > div > input:focus {
    background-color: #FAFAFB;
    box-shadow: none;
  }

  ::placeholder {
    color: #A6A6AE;
    font-size: 0.75rem;
  }

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

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

  form > div > div > input.password-error,
  form > div > div > input.email-error,
  div:has(+ span.invalid-feedback) > input {
    border-color: #EF4444;
    color: #9A2626;
    margin-bottom: 0;
  }

  form > div > div > input.password-error::placeholder,
  form > div > div > input.email-error::placeholder,
  div:has(+ span.invalid-feedback) > input::placeholder {
    color: #E5C4C4;
  }

  form > div > div > input.password-error:focus,
  form > div > div > input.email-error:focus,
  div:has(+ span.invalid-feedback) > input:focus {
    outline-color: #EF4444;
  }

  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 {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: 1px solid #393052;
    border-radius: 0.25rem;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;
    text-transform: uppercase;
    padding: 0.625rem;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    outline: none;
    overflow: hidden;
  }

  form > a {
    background-color: color-mix(in srgb, var(--primary-color) 4%, white);
    border-radius: 4px;
    border: 1px solid transparent;
    color: var(--primary-color);
  }

  form > button:hover {
    filter: brightness(125%);
  }

  form > a:hover {
    filter: brightness(102%);
  }

  /* 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 #C7C7C9;
  }

  form > div:nth-of-type(2) div:nth-child(2) > span {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    background-color: #FFFFFF;
    color: #A6A6AE;
  }
  /* separator_text - end */

  .badge {
    display: inline-block;
    margin-top: 3.625rem;
    margin-bottom: 0;
  }

  .cryptr-badge {
    height: 2rem;
  }

  /* Screen Error */
  .screen-error .content > .header {
    margin-bottom: 0;
  }

  .screen-error .content > .header > div > h1 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #2D2D2D;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
  }

  .screen-error .content > .header > p {
    margin-top: 0.5rem;
    color: #2D2D2D;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .screen-error .content > .header > p > span {
    font-weight: 700;
  }

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

  .screen-error #cryptr-widget > form + p > a:hover,
  .screen-error #cryptr-widget > p > a:hover {
    text-decoration: underline;
  }

  /* Screen Magic Link Request + Screen Challenge Password */
  .screen-magic-link-request #cryptr-widget > div:first-of-type,
  .screen-challenge-password #cryptr-widget > div:first-of-type {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .screen-magic-link-request #cryptr-widget > div:first-of-type > a,
  .screen-challenge-password #cryptr-widget > div:first-of-type > a {
    background-color: #ffffff;
    color: #2D2D2D;
    border: 1px solid #C7C7C9;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    text-transform: uppercase;
  }

  .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: 1rem;
    height: 1rem;
  }

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

  .screen-magic-link-request #cryptr-widget > form > div:nth-of-type(2),
  .screen-challenge-password  #cryptr-widget > form > div:nth-of-type(2) {
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  .screen-magic-link-request form > div:last-child > a,
  .screen-challenge-password form > div:last-child > a {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
  }

  .screen-magic-link-request form > div:last-child > a:hover,
  .screen-challenge-password form > div:last-child > a:hover {
    text-decoration: underline;
  }

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

  .screen-magic-link-request form > div:last-child,
  .screen-challenge-password form > div:last-child {
    text-align: center;
    margin-top: 1.5rem;
  }

  .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.25rem;
    margin-bottom: 1.25rem;
  }

  .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-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: 0.875rem;
    line-height: 1.25rem;
    justify-content: center;
  }

  .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: 0.063rem solid #C7C7C9;
  }

  .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: #A6A6AE;
  }

  /* Password */
  .screen-password #cryptr-widget > form > div:nth-of-type(2) {
    margin-bottom: 0;
  }

  .screen-password #cryptr-widget > form > div:first-of-type {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .screen-password #cryptr-widget > form > div:first-of-type > a,
  .screen-password #cryptr-widget > form > div:last-child > a,
  .screen-create-password #cryptr-widget > form > div:last-child > a,
  .screen-edit-password #cryptr-widget > form > div:last-child > a {
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
  }

  .screen-password #cryptr-widget > form > div:first-of-type > a:hover,
  .screen-password #cryptr-widget > form > div:last-child > a:hover,
  .screen-create-password #cryptr-widget > form > div:last-child > a:hover,
  .screen-edit-password #cryptr-widget > form > div:last-child > a:hover {
    text-decoration: underline;
  }

  .screen-password #cryptr-widget > form > div:last-child,
  .screen-create-password #cryptr-widget > form > div:last-child > a,
  .screen-edit-password #cryptr-widget > form > div:last-child > a {
    text-align: center;
    margin-top: 1.5rem;
  }

  /* TOTP */
  rect.transparent {
    fill: transparent;
  }

  rect.dark {
    fill: #000000;
  }

  svg.background {
    background-color: #FFFFFF;
  }

  .screen-enroll-totp .header,
  .screen-recovery-totp .header,
  .screen-challenge-totp .header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0.625rem;
  }

  .screen-enroll-totp .header > h2,
  .screen-recovery-totp .header > h2,
  .screen-challenge-totp .header > h2 {
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: #2D2D2D;
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    text-align: center;
  }

  .screen-enroll-totp .header > p,
  .screen-recovery-totp .header > p,
  .screen-challenge-totp .header > p {
    margin-top: 0.5rem;
    color: #2D2D2D;
    font-size: 0.875rem;
    line-height: 1.25rem;
    text-align: center;
  }

  .screen-enroll-totp .header > p > a,
  .screen-recovery-totp .header > p > a,
  .screen-challenge-totp .header > p > a {
    cursor: pointer;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
  }

  .screen-enroll-totp .header > p > a:hover,
  .screen-recovery-totp .header > p > a:hover,
  .screen-challenge-totp .header > p > a:hover {
    text-decoration: underline;
  }

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

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

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

  .screen-recovery-totp #cryptr-widget > form > div:first-of-type > div {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    color: var(--primary-color);
    font-size: 16px;
    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(--primary-color);
    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 form > div.checkbox {
    display: flex;
    position: relative;
    align-items: start;
  }

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

  .screen-recovery-totp form > div.checkbox > div > input,
  .screen-recovery-totp form > div > 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;
    appearance: auto;
    padding: initial;
  }

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

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

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

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

  .screen-recovery-totp form > div:nth-of-type(2) div:nth-child(2) > span {
    padding: initial;
    color: #6B7280;
  }

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

  .screen-recovery-totp form textarea + a {
    background-color: color-mix(in srgb, var(--primary-color) 4%, white);
    border-radius: 4px;
    border: 1px solid transparent;
    color: var(--primary-color);
    font-size: 0.7rem;
  }

  .screen-recovery-totp form textarea + a > svg {
    color: var(--primary-color);
    height: 0.75rem;
    width: 0.75rem;
    margin-right: 0.75rem;
  }

  .screen-recovery-totp form textarea + a:hover {
    filter: brightness(102%);
  }

  .screen-recovery-totp form > div:nth-of-type(2) div:nth-child(1) {
    position: relative;
  }

  /* Responsive */
  /* 'sm' */
  @media (min-width: 640px) {
    .wrapper {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
    .screen-magic-link-request #cryptr-widget > div:first-of-type,
    .screen-challenge-password #cryptr-widget > div:first-of-type {
      display: flex;
      flex-direction: row;
      gap: 1.25rem;
    }
  }

  /* 'lg' */
  @media (min-width: 1024px) {
    .wrapper {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }
