@import "reset.less";

.factor-app {
  --color-primary: #0471ff;
  --color-primary-dark: #1a49bd;

  --color-text: #110d47;
  --color-placeholder: #bdcad4;
  --color-placeholder-2: #eeeef1;

  --color-bg: #fff;
  --color-bg-alt: #f3f5fb;
  --color-bg-dark: #110d47;

  --font-family-primary: "poppins",
    /* Safari for OS X and iOS (San Francisco)*/ -apple-system,
    /* Chrome < 56 for OS X (San Francisco)*/ BlinkMacSystemFont, /* Windows*/ "Segoe UI",
    /* Android*/ "Roboto", /* Basic web fallback*/ "Helvetica Neue", Arial, sans-serif;

  /* Alpha Theme Variables */
  --font-weight-normal: 400;
  --font-weight-bold: 800;
  --input-bg: #fff;

  color: var(--color-text);
  background: var(--color-bg);
  font-family: var(--font-family-primary);
  font-size: 16px;
  line-height: 1.5;
  font-weight: var(--font-weight-normal);
  scroll-behavior: smooth;

  strong {
    font-weight: var(--font-weight-bold);
  }

  a {
    color: var(--color-primary);

    &:hover {
      opacity: 1;
      color: var(--color-primary-dark);
    }
  }

  .btn {
    display: inline-block;
    line-height: 1;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    transition: 0.29s cubic-bezier(0.52, 0.01, 0.16, 1);
  }

  // Colors
  .text-white,
  .hover\:text-white:hover {
    color: #fff;
  }
  .text-blue-500,
  .hover\:text-blue-500:hover {
    color: var(--color-primary);
  }
  .text-blue-700,
  .hover\:text-blue-700:hover {
    color: var(--color-primary-dark);
  }
  .text-blue-900,
  .hover\:text-blue-900:hover {
    color: #110d47;
  }
  .text-gray-600,
  .hover\:text-gray-600:hover {
    color: #718096;
  }
  .text-bluegray-600,
  .hover\:text-bluegray-600:hover {
    color: #99adc0;
  }

  // Backgrounds
  .bg-white,
  .hover\:bg-white:hover {
    background-color: #fff;
  }

  .bg-blue-100,
  .hover\:bg-blue-100:hover {
    background-color: #dfe4f5;
  }

  .bg-blue-500,
  .hover\:bg-blue-500:hover {
    background-color: var(--color-primary);
  }

  .bg-blue-700,
  .hover\:bg-blue-700:hover {
    background-color: var(--color-primary-dark);
  }

  // Utilities
  .text-left {
    text-align: left;
  }
  .text-center {
    text-align: center;
  }
  .text-right {
    text-align: right;
  }
  .text-sm {
    font-size: 0.875rem;
  }
  .border {
    border-width: 1px !important;
  }
  .border-solid {
    border-style: solid;
  }
  .border-white {
    border-color: #fff;
  }
  .rounded-sm {
    border-radius: 0.125rem;
  }
  .rounded {
    border-radius: 0.25rem;
  }
  .rounded-lg {
    border-radius: 0.5rem;
  }
  .rounded-full {
    border-radius: 9999px;
  }

  //inputs
  ::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: var(--color-placeholder);
  }

  button,
  input,
  select,
  textarea {
    resize: none;
    border: 0;
    font-size: 1em;
    box-shadow: none;
    padding: 0;
  }

  button,
  select,
  input,
  textarea,
  select,
  .checkbox-label {
    font-family: var(--font-family-primary);
  }

  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="text"],
  textarea {
    -webkit-appearance: none;
  }

  input,
  textarea {
    line-height: 1.2;
  }

  [type="checkbox"],
  [type="radio"] {
    margin: 0;
    width: auto;
    display: inline-block;
    box-shadow: none;
  }

  input,
  textarea,
  select {
    display: inline-block;
    padding: 0.5em;
    font-size: 1em;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    border: 0;
    font-weight: 500;
    color: var(--color-text, #303030);
    background-color: transparent;

    &.disabled {
      opacity: 0.5;
    }

    &.dropdown,
    &.toggle,
    &.range {
      border: 0;

      &:hover,
      &:focus {
        border: none;
      }
    }

    &::placeholder {
      /* Chrome/Opera/Safari */
      color: var(--color-placeholder);
    }
  }

  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
  textarea,
  select {
    background-color: var(--input-bg);
    box-shadow: var(--box-shadow-input);
    border-radius: 4px;
    width: 100%;
  }
}
