/* 
  BYNDER TOKENS - https://github.com/Bynder/design-system/blob/master/src/theme.ts
*/

* {
  font-family: "Source Sans Pro", SourceSansPro, sans-serif;
  box-sizing: border-box;
}

/* Fixes problematic font-rendering */
[class^="css-"],
[class*=" css-"],
[class^="css-"] .token {
  -webkit-font-smoothing: auto !important;
}

body {
  background-color: #131b2a;
  background-attachment: fixed;
  background-position: center center;
  display: flex;
  justify-content: center;
}

.contentContainer {
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.05);
  padding: 24px;
  z-index: 80;
  margin-top: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 520px;
}

.message {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  color: #354051;
}

.contentHeader {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.headerCircle {
  height: 128px;
  width: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(248, 248, 249, 1);
  border-radius: 100%;
}

.headerSubtitle {
  display: flex;
  align-items: center;
  height: 60px;
  font-size: 22px;
  font-weight: 400;
  color: #354051;
}

.lockIconTop {
  height: 48px;
  width: 48xp;
  /* Computed via - https://codepen.io/sosuke/pen/Pjoqqp for color #f23e0d*/
  filter: invert(73%) sepia(11%) saturate(231%) hue-rotate(180deg)
    brightness(87%) contrast(81%);
}

.formContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  gap: 24px;
  width: 100%;
}

/* 
  BYNDER INPUT 
  https://github.com/Bynder/design-system/blob/master/src/components/Input/Input.styles.ts
*/

.inputWrapper {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 16px;
  border: 1px solid #e6e7e9;
  border-radius: 5px;
  background: #ffffff;

  &:hover {
    border-color: #cdcfd4;
    box-shadow: 0 1px 4px -1px rgb(from #031026 r g b / 10%);
  }

  &:focus-within {
    border-color: #b3b7be;
    box-shadow: 0 0 0 3px #e6e7e9;
  }
}

.rightItemsInputContainer {
  display: flex;
  flex: none;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-right: calc(4px * -1);
  margin-left: 8px;

  &:empty {
    display: none;
  }
}

.rightItemButton {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px;
  border: transparent solid 1.5px;
  background: transparent;
  color: #68707d;
  cursor: pointer;
  outline: none;

  &:focus {
    outline: none;
    border: #9ca3ae solid 1.5px;
    border-radius: 2px;
  }

  &:active {
    outline: none;
  }
}

.inputIcon {
  /* Computed via - https://codepen.io/sosuke/pen/Pjoqqp for color #68707d*/
  filter: invert(44%) sepia(19%) saturate(287%) hue-rotate(178deg)
    brightness(93%) contrast(89%);
}

.inputIconHover {
  &:hover {
    filter: invert(44%) sepia(19%) saturate(287%) hue-rotate(178deg)
      brightness(50%) contrast(89%);
  }
}

.hidePasswordIcon {
  /*  Slightly offset so it's same as showPassword icon */
  margin-top: 1px;
}

.customInput {
  &&& {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #354051;
    box-shadow: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    &::-webkit-inner-spin-button,
    &::-webkit-outer-spin-button {
      display: none;
      margin: 0;
      appearance: none;
    } /* Hide native arrows to change number in Firefox */
    &::placeholder {
      color: #9a9fa8;
    }
    &:disabled {
      color: #68707d;
      cursor: not-allowed;
      &::placeholder {
        color: #9a9fa8;
      }
    }
  }
}

/* 
  INLINE BANNER 
  https://github.com/Bynder/design-system/blob/master/src/components/InlineBanner/InlineBanner.tsx
*/

.inlineBanner {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  border-radius: 5px;
  width: 100%;
  font-size: 14px;
  background: var(--background-color);
  background-color: rgb(from #f23e0d r g b / 10%);
}

.errorIcon {
  margin-right: 8px;
  margin-left: 4px;
  /* Computed via - https://codepen.io/sosuke/pen/Pjoqqp for color #f23e0d*/
  filter: invert(48%) sepia(65%) saturate(7438%) hue-rotate(356deg)
    brightness(96%) contrast(98%);
}

/* 
  BYNDER BUTTON 
  https://github.com/Bynder/design-system/blob/master/src/components/Button/Button.styles.ts
*/

.submit-button {
  display: inline-flex;
  vertical-align: middle;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  min-width: 100%;
  border: 1px solid transparent;
  border-radius: 5px;
  outline: none;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  fill: currentcolor;
  transition-duration: 0.1s;
  transition-property: background-color, border-color, box-shadow, color;

  height: 40px;
  padding: 0 16px;
  border-color: transparent;
  background-color: #323a48;
  color: white;
  outline: none;

  &&:hover,
  &&:focus {
    outline: none;
    border-color: #1e283a;
    background-color: #1e283a;
    color: white;
    box-shadow: 0 1px 4px -1px rgb(from #031026 r g b / 10%);
  }

  &&:active {
    border-color: #1e283a;
    background-color: #1e283a;
    color: white;
    box-shadow: none;
  }

  &&:disabled {
    cursor: not-allowed;
    border-color: transparent;
    background-color: #9b9fa7;
    color: white;
    box-shadow: none;
  }
}

.hidden {
  display: none;
}
