* {
  box-sizing: border-box;
}

:root {
  --bg-page: #fcfcfc;
  --bg--disabled: #e6e6e6;
  --text--disabled: #8997a0ad;
  /* --bg--disabled: #bdc8cd; */
  --text: #2d363c;
  --text--light: #afbdc5;
  --text--dark: #0d2238;
  --text--sub: #8a8f92;
  --low: #86dbc1;
  --red: #e04f4f;
  --red--light: #e98282;
  --border: #afbdc5;
  --button: #6097b3;
  --button--light: #73b6d6;
  --button-dark: #5c91ac;
  --button--disabled: hsl(200, 35%, calc(54% / 0.7));
  --shadow: rgba(13, 34, 56, 0.07);
  --link: #0da1ff;
  --link--light: #08c2ff;
  --link--dark: #0d81cc;
  --svg-low: brightness(0) invert(81%) sepia(49%) saturate(265%)
    hue-rotate(106deg) brightness(90%) contrast(93%);
  --svg-link: brightness(0) invert(55%) sepia(30%) saturate(6507%)
    hue-rotate(179deg) brightness(100%) contrast(103%);
  --svg-link-light: brightness(0) invert(57%) sepia(28%) saturate(2670%)
    hue-rotate(176deg) brightness(101%) contrast(102%);
  --border-active: #2684ff;
  --svg--warning: brightness(0) invert(47%) sepia(6%) saturate(3830%)
    hue-rotate(314deg) brightness(136%) contrast(83%);
}

html {
  font: unset;
  font-family:
    "SF Pro Display",
    -apple-system,
    "BlinkMacSystemFont",
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-style: normal;
  font-weight: normal;
  color: var(--text);
}

body {
  background-color: var(--bg-page);
}

.login__container {
  max-width: 540px;
  margin: 80px auto 0;
  padding: 20px;

  @media (max-width: 560px) {
    max-width: 520px;
  }
}

@media (max-width: 876px) {
  .login__container {
    margin-top: 40px;
  }
}

[hidden],
.hidden {
  display: none !important;
}

.login__container h1 {
  font-weight: bold;
  font-size: 22px;
  color: var(--text--dark);
}

.login__container h2 {
  font-size: 16px;
  color: var(--text);

  span {
    font-weight: 500;
  }

  b {
    font-weight: bold;
  }
}

.login__container h4 {
  color: var(--text--sub);
  font-weight: 400;
  font-size: 12px;
  margin: 0;
}

.login__logo {
  margin-bottom: 4px;
  text-align: center;
  text-align: center;
}

.login__logo img {
  width: 180px;
  transition: 0.05s all linear;
  cursor: pointer;
  /* filter: brightness(0); */
}

.login__main {
  border-radius: 4px;
  box-shadow: 0 2px 20px 0 var(--shadow);
  background-color: #fff;
  padding: 28px 40px;
  margin: 0 auto;

  h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    margin-top: 0;

    .button--icon {
      margin-left: -16px;
      padding-right: 4px;

      img {
        width: 28px;
      }
    }
  }

  h2 {
    margin: 8px auto 8px;
    text-align: center;
  }
}

.login__form {
  margin-top: 20px;
}

h4.login__alert {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  font-size: 16px;

  img {
    width: 24x;
    margin-right: 4px;
    filter: var(--svg-low);
  }
}

.input__wrapper {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
}

.input__sublabel {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
}

.input__sublabel-reset {
  display: flex;
}

.input__sublabel-text {
  font-size: 12px;
  color: var(--text--sub);
  /* flex: 1;
  text-align: end; */
}

.input__sublabel--checkbox {
  margin-top: 4px;
  margin-left: 24px;
  margin-bottom: 12px;
}

.input__full-name-wrapper {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}

.input__wrapper--password {
  label input {
    padding-left: 46px;
  }
}

.input__wrapper--textfield label span {
  position: absolute;
  top: -7px;
  left: 20px;
  color: var(--text--sub);
  font-weight: 400;
  font-size: 12px;
  margin: 0;
  background-color: white;
  padding: 0 4px;
  border-radius: 4px;
  z-index: 5;
}

/* .input__checkbox::before {
  border: 2px solid blue;
} */
.input__wrapper--textfield label span span {
  position: relative;
  top: unset;
  left: unset;
  color: var(--red--light);
  padding: 0 2px;
}

input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: thin solid var(--border);
  padding: 10px 10px 10px 24px;
  font-size: 16px;
  display: inline-block;
  margin-bottom: 8px;
}

input[type="checkbox"],
.input__checkbox {
  cursor: pointer;

  span {
    display: inline-flex;

    button {
      font-size: inherit;
    }

    span {
      color: var(--red--light);
    }
  }
}

input[type="email"]:active,
input[type="text"]:active,
input[type="password"]:active {
  border: var(--link);
  border: var(--border-active);
}

input[type="email"].input--disabled,
input[type="text"].input--disabled,
input[type="password"].input--disabled {
  background-color: var(--bg--disabled) !important;
  border: thin solid var(--bg--disabled) !important;
  cursor: default;
  color: var(--text--disabled) !important;
  pointer-events: none;
}

.input__checkbox:has(.input--disabled) {
  cursor: default;
  opacity: 0.7;
  pointer-events: none;
}

input[type="email"].input--disabled:-internal-autofill-selected,
input[type="password"].input--disabled:-internal-autofill-selected {
  opacity: 0.4;
  pointer-events: none;
}

select {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  border: thin solid var(--border);
  padding: 10px 10px 10px 24px;
  font-size: 16px;
  display: inline-block;
  margin-bottom: 8px;
}

.input__select-option--first {
  color: var(--text-disabled);
}

.input__select-chevron-down {
  position: absolute;
  right: 4px;
  top: 12px;
  background-color: white;
  color: var(--text--dark);
  width: 30px;
  padding-right: 2px;
}

h4.login__error,
h4.input__error {
  margin: 6px 0 0;
  min-height: 20px;
  vertical-align: middle;
  font-size: 12px;
  color: var(--red--light);
}

input.input--error {
  border-color: var(--red--light);
}

.input__wrapper--hidden {
  z-index: -1;
  position: relative;
  height: 0;
  width: 0;
  margin-bottom: 0;
  overflow: hidden;
  top: -10px;
}

button,
a {
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background-color: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button--primary {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  /* max-width: 350px; */
  height: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--button);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button--secondary {
  background-color: white;
  border: thin solid var(--border);
  padding: 4px 16px;
  color: var(--text);

  img {
    width: 20px;
    margin-right: 12px;
  }
}

.button--link {
  /* color: white; */
  max-width: unset;
  width: fit-content;
  height: unset;
  background-color: none;
  margin: 0;
  padding: 0 4px;
  color: var(--link);
}

.button--inline {
  padding: 0 2px;
  font-size: inherit;
  width: fit-content;
  margin: 0;
  text-decoration: underline;
}

.button--icon {
  font-size: 12px;
  padding: 10px;
  max-width: unset;
  width: fit-content;
  height: unset;
  color: var(--link);
  margin: 0;
  border: hidden;
  background-color: transparent;

  img {
    max-width: 40px;
  }
}

.button--password-toggle {
  position: absolute;
  top: 8px;
  left: 2px;
  background-color: transparent;
}

.button:hover,
.button:active {
  transition: 0.15s all ease;
}

.button--primary:hover,
.button--primary:active {
  background-color: var(--button--light);
}

.button--secondary:hover,
.button--secondary:active {
  outline: none;
  border: thin solid var(--button);
  color: var(--button);
}

.button--link:hover,
.button--link:active {
  text-decoration: underline;
  filter: brightness(1.2);
}

.button--inline:hover {
  color: var(--link);
}

.button--icon:hover img {
  filter: var(--svg-link-light);
}

.button--password-toggle:hover img {
  filter: var(--svg-link-light);
}

.button:disabled img {
  opacity: 0.5;
}

.button--primary:disabled {
  background-color: var(--button--disabled);
  cursor: default;
  color: white;
  pointer-events: none;
}

.button--secondary:disabled {
  border-color: var(--button--disabled);
  color: var(--button--disabled);
  cursor: default;
  pointer-events: none;
}

.button--link:disabled {
  color: var(--button--disabled);
  cursor: default;
  text-decoration: underline;
  pointer-events: none;
}

.button--icon:disabled {
  color: var(--button--disabled);
  cursor: default;
  pointer-events: none;
}

.button--rg {
  font-size: 16px;
}

.button--rg.button--primary,
.button--rg.button--secondary {
  height: 50px;
  padding: 10px;
  min-width: 140px;
}

.button--rg.button--link {
  padding: 0 4px;
}

.button--sm {
  font-size: 14px;
}

.button--sm.button--primary,
.button--sm.button--secondary {
  height: 40px;
  min-width: 100px;
  padding: 8px;
}

.button--sm.button--link {
  padding: 0 4px;
  max-width: unset;
}

.button--xs {
  font-size: 12px;
  min-width: 80px;
  height: 32px;
}

.button--xs.button--link {
  height: unset;
}

.button__fetching {
  width: 32px;
  margin: 0 auto;
}

.button__stacked-icons {
  width: 20px;
  margin-right: 12px;
  position: relative;
}

img.button__icon {
  margin-right: 0;
  /* top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); */
  transition: opacity 0.3s ease-in-out;
}

img.button__icon--default {
  opacity: 1;
}

img.button__icon--hover {
  opacity: 0;
  position: absolute;
  left: 0;
}

.button:hover img.button__icon--default {
  opacity: 0;
}

.button:hover img.button__icon--hover {
  opacity: 1;
}

.hidden {
  color: white;
  pointer-events: none;
}

.login__row {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.login__row--divider span {
  padding: 0 20px;
}

.login__row-divider--left {
  height: 1px;
  background-color: var(--border);
  margin-right: 4px;
  flex: 1;
}

.login__row-divider--right {
  height: 1px;
  background-color: var(--border);
  margin-left: 4px;
  flex: 1;
}

.login__row--actions {
  flex-wrap: wrap;

  @media (max-width: 500px) {
    grid-gap: 16px;
  }
}

.login__row--fl360 {
  margin-top: 20px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
*/ .banner-container {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.banner {
  padding: 15px 20px;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 250px;
  max-width: 800px;

  @media (max-width: 876px) {
    max-width: 90vw;
  }
}

.banner.show {
  opacity: 1;
  transform: translateY(0);
}

.success {
  background-color: var(--low);
  color: white;
}

.error {
  background-color: var(--red);
  color: white;
}

.banner__close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.modal__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.modal {
  background: white;
  width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  border-radius: 8px;
  position: relative;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal__close-btn {
  cursor: pointer;
  font-size: 24px;
  margin-top: -20px;
  border: none;
  background: none;
}

/* @media (min-width: 875px) {
  .login__row--actions .button--google {
    display: none;
  }
} */

@media (max-width: 876px) {
  .login__row--google {
    display: none;
  }
}

.login__row--actions .button--sm {
  width: 200px;
  margin-bottom: 20px;

  @media (max-width: 560px) {
    width: unset;
    flex: 1;
    min-width: 100px;

    img {
      margin-right: 8px;
    }
  }
}

.login__row--actions .button--rg {
  width: 200px;

  @media (max-width: 560px) {
    width: unset;
    flex: 1;
    min-width: 100px;
  }
}

.login__row--divider:before,
.login__row--divider:after {
  content: "";
  border: o solid #e5e7eb;
}

.login__row h4 {
  max-width: 220px;
}

.login__text p {
  font-size: 14px;
  color: var(--text--sub);
  margin: 0;
  text-align: center;

  a {
    margin: 4px auto;
  }
}

.login__google {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 8px;
  max-width: 350px;
  height: 50px;
  cursor: pointer;
  background-color: white;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;

  margin-top: 30px;
  border: thin solid var(--border);
}

.button--rg img {
  height: 25px;
  width: 25px;
  margin-right: 8px;
  filter: brightness(100%);
  border-radius: 100%;
}

.button--sm img {
  width: 20px;
  margin-right: 12px;
}

/* *** PaperOS Loading SVG *** */

/** Savvi Loading SVG Styling **/
.paperos-loading__svg {
  text-align: center;
  align-self: center;

  width: 185px;
  height: 180px;
  margin-right: 4px;
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
}

.paperos-loading__gOuter {
  stroke: none;
  stroke-width: 1;
  fill: none;
  fill-rule: evenodd;
  transform: translate(92.5px, 92.4997px) translate(-87.5px, -106.238px);
}

.paperos-loading__gInner {
  fill: #d8d8d8;
  fill-rule: nonzero;
  stroke: #0c6987;
  stroke-width: 15;
  transform: translate(87.5px, 74.7383px) rotate(-45px) translate(-58px, -58px);
  animation: 2s linear infinite both Savvi-Rectangle-Folded;
}

.paperos-loading__pathFirst {
  fill-opacity: 0;
  animation: 2s linear infinite both Rectangle_d;
}

.paperos-loading__pathSecond {
  stroke-linecap: square;
  stroke-linejoin: bevel;
  opacity: 1;
  animation: 2s linear infinite both Line_o;
}

/** End of Savvi Loading SVG Styling **/
.paperos-loading--sm {
  width: 25px;
  height: 25px;
}

.paperos-loading--md {
  width: 75px;
  height: 75px;
}

.paperos-loading--lg {
  width: 185px;
  height: 185px;

  @media (max-width: 876px) {
    width: 160px;
    height: 160px;
  }
}

.paperos-loading--black {
  filter: brightness(0);
}

.paperos-loading--white {
  /* color: white; */
  filter: brightness(0) invert(100%);
}

.paperos-loading--mint {
  filter: brightness(0) saturate(100%) invert(87%) sepia(47%) saturate(774%)
    hue-rotate(100deg) brightness(91%) contrast(80%);
}

.paperos-loading--powderblue {
  filter: brightness(0) saturate(100%) invert(86%) sepia(17%) saturate(295%)
    hue-rotate(134deg) brightness(98%) contrast(94%);
}

.paperos-loading--cerulean {
  filter: brightness(0) saturate(100%) invert(32%) sepia(51%) saturate(878%)
    hue-rotate(150deg) brightness(94%) contrast(93%);
}

.paperos-loading--cerulean-light {
  filter: brightness(0) invert(67%) sepia(66%) saturate(5284%)
    hue-rotate(161deg) brightness(95%) contrast(85%);
}

.paperos-loading--manilla {
  filter: brightness(0) invert(79%) sepia(32%) saturate(601%) hue-rotate(359deg)
    brightness(105%) contrast(102%);
}

/*** savvi_loading.svg styling ***/
@keyframes Savvi-Rectangle-Folded {
  0% {
    transform: translate(87.5px, 74.7383px) rotate(-45deg)
      translate(-58px, -58px);
  }

  7.5% {
    transform: translate(87.5px, 74.7383px) rotate(-45deg)
      translate(-58px, -58px);
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }

  26% {
    transform: translate(87.5px, 91.2383px) rotate(0deg) translate(-58px, -58px);
  }

  65% {
    transform: translate(87.5px, 91.2383px) rotate(0deg) translate(-58px, -58px);
    animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
  }

  96.5% {
    transform: translate(87.5px, 74.74px) rotate(-45deg) translate(-58px, -58px);
  }

  100% {
    transform: translate(87.5px, 74.74px) rotate(-45deg) translate(-58px, -58px);
  }
}

@keyframes Rectangle_d {
  0% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.5,115.5L115.5,115.5L115.5,107.76L115.5,58L58,58L58,0.5Z"
    );
  }

  15% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.5,115.5L115.5,115.5L115.5,107.76L115.5,58L58,58L58,0.5Z"
    );
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }

  26% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.5,124L115.5,124L115.5,107.76L115.5,58L58,58L58,0.5Z"
    );
  }

  40% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.5,124L115.5,124L115.5,107.76L115.5,58L115.5,0.5L58,0.5Z"
    );
  }

  46% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.5,124L115.5,124L115.5,107.76L115.5,58L115.5,0.5L58,0.5Z"
    );
  }

  52% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.5,124L115.5,124L115.5,107.76L115.5,58L115.5,0.5L58,0.5Z"
    );
  }

  66.5% {
    d: path(
      "M0.5,0.5L0.5,108.307L0,124L115.5,124L115.5,107.76L115.5,58L58,58L58,0.5Z"
    );
  }

  74% {
    d: path(
      "M0.5,0.5L0.5,108.307L0,124L115.5,124L115.5,107.76L115.5,58L58,58L58,0.5Z"
    );
    animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
  }

  89% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.481765,115.375L115.5,115.375L115.5,107.76L115.5,58L58,58L58,0.5Z"
    );
  }

  100% {
    d: path(
      "M0.5,0.5L0.5,108.307L0.481765,115.375L115.5,115.375L115.5,107.76L115.5,58L58,58L58,0.5Z"
    );
  }
}

@keyframes Line_o {
  0% {
    opacity: 1;
  }

  32% {
    opacity: 1;
    animation-timing-function: cubic-bezier(0, 0, 0.58, 1);
  }

  37% {
    opacity: 0;
  }

  58% {
    opacity: 0;
    animation-timing-function: cubic-bezier(0.42, 0, 1, 1);
  }

  63% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}
