/****************************************************************************** 
|
| @Fonts
| 
******************************************************************************/
@font-face {
  font-family: Gilroy;
  src: url("/assets/fonts/Gilroy-Bold.woff2");
  font-weight: 700;
}

@font-face {
  font-family: Gilroy;
  src: url("/assets/fonts/Gilroy-SemiBold.woff2");
  font-weight: 600;
}

@font-face {
  font-family: Gilroy;
  src: url("/assets/fonts/Gilroy-Medium.woff2");
  font-weight: 500;
}

@font-face {
  font-family: Gilroy;
  src: url("/assets/fonts/Gilroy-Regular.woff2");
  font-weight: 400;
}

@font-face {
  font-family: Gilroy;
  src: url("/assets/fonts/Gilroy-Light.woff");
  font-weight: 300;
}

:root {
  --background: #fff;
  --primary-blue: #1100db;
  --primary-blue-hover: #0d00a8;
  --primary-blue-navy: #0c2746;
  --primary-red: #dc1f3f;
  --primary-green: #14e25a;
  --primary-gray: #f2f6fd;

  --body-1-size: 14px;
  --body-1-line-height: 21px;
  --body-2-size: 16px;
  --body-2-line-height: 24px;

  --title-3-size: 24px;
  --title-3-line-height: 29px;
  --title-4-size: 28px;
  --title-4-line-height: 34px;

  --neutral-0: #ffffff;
  --neutral-2: #dce6f2;
  --neutral-6: #6d7073;
  --neutral-7: #4d5154;
  --neutral-8: #0f1f30;

  font-family: Gilroy, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  color: var(--neutral-8);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background: var(--background);
  min-height: 100vh;
}

svg {
  width: 100%;
  height: auto;
}

.hidden {
  display: none;
}

.topbar {
  position: fixed;
  height: 60px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 30px;
  border-bottom: 1px solid #ddd;

  .logout-button {
    height: 36px;
    padding: 0 16px;
    background: transparent;
    border-radius: 18px;
    border: 1px solid #6d7073;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #333;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
    margin-left: auto;

    &:hover {
      background: #f2f4f7;
    }
  }
}

.info-bar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  height: fit-content;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #ddd;

  .info-bar-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;

    .info-bar-row-data {
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 0.3px;
    }

    .info-bar-row-button {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 8px;
      background: transparent;
      border-radius: 22px;
      height: 44px;
      width: 100%;
      font-size: var(--body-2-size);
      line-height: var(--body-2-line-height);
      font-weight: 600;
      color: #333;
      border: 1px solid #ddd;
      cursor: pointer;
      transition: all 0.1s ease-in-out;

      &.visible {
        display: inline-flex;
      }

      &:hover {
        background: #f2f4f7;
      }
    }

    .info-bar-row-message {
      display: none;

      &:visible {
        display: block;
      }
    }
  }
}

#signup,
#login,
#account,
#forgot-password,
#reset-password {
  background: var(--background);

  .logo-wrapper {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    align-self: center;
    top: 30px;
  }

  .topbar .logo-wrapper {
    position: relative;
    top: 0;
  }

  .container.account {
    display: flex;
    justify-content: center;
    padding: 100px 30px 40px;
  }

  .form-input {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 12px;
    height: 40px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: inherit;
    outline-color: var(--primary-blue);
  }

  .container {
    display: grid;
    grid-template-columns: 1fr;
    height: 100vh;
  }

  .left {
    display: flex;
    justify-content: center;
    padding: 80px 20px 60px;
  }

  .form-wrapper {
    max-width: 420px;
    width: 100%;

    .heading {
      font-size: var(--title-4-size);
      line-height: var(--title-4-line-height);
      font-weight: 600;
      margin-bottom: 4px;
      color: var(--neutral-8);
    }

    .sub-heading {
      font-size: var(--body-2-size);
      line-height: var(--body-2-line-height);
      color: var(--neutral-6);
      margin-bottom: 24px;
    }

    .form {
      display: flex;
      flex-direction: column;
      gap: 16px;

      .cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 12px;

        .card {
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          display: flex;
          align-items: center;
          justify-content: space-between;
          width: 100%;
          padding: 0 24px;
          background: #fff;
          border: 1px solid #ddd;
          border-radius: 24px;
          height: 48px;
          transition: all 0.05s ease-in-out;
          cursor: pointer;

          &:hover:not(.selected) {
            border: 1px solid var(--primary-blue);
          }

          &.selected {
            outline: #1100db;
            outline-style: dashed;
            outline-offset: 2px;
          }

          .card-header {
            display: flex;
            flex-direction: column;
            color: var(--neutral-8);
            justify-self: start;
            align-items: start;
            font-size: var(--body-1-size);
            line-height: 17px;

            .card-title {
              font-weight: 600;
            }

            .card-price {
              font-weight: 400;
              color: var(--neutral-7);
            }
          }

          .badge {
            background-color: #8bfd19;
            padding: 5px 8px;
            border-radius: 8px;
            font-weight: 600;
            color: #2a430f;
          }
        }
      }

      .input-wrapper {
        display: flex;
        flex-direction: column;
        gap: 4px;

        label {
          font-size: var(--body-1-size);
          line-height: var(--body-1-line-height);
          font-weight: 500;
          color: var(--neutral-8);
        }
      }

      .approve-wrapper {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 8px;
        font-size: var(--body-1-size);
        line-height: var(--body-1-line-height);
        color: var(--neutral-7);

        input {
          width: 16px;
          height: 16px;
          accent-color: var(--primary-blue);
          cursor: pointer;
        }

        .terms-link {
          color: var(--neutral-7);
          cursor: pointer;

          &:hover {
            text-decoration: underline;
            color: var(--primary-blue);
          }
        }
      }

      .form-link-text {
        text-align: center;

        .form-link {
          margin-left: 4px;
          color: var(--primary-blue);
          text-decoration: none;

          &:hover {
            text-decoration: underline;
          }
        }
      }

      .submit {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--primary-blue);
        border-radius: 22px;
        height: 44px;
        width: 100%;
        font-size: var(--body-2-size);
        line-height: var(--body-2-line-height);
        font-weight: 600;
        color: var(--neutral-0);
        border: none;
        cursor: pointer;
        transition: all 0.1s ease-in-out;

        &:hover:not(:disabled) {
          background: var(--primary-blue-hover);
        }

        &:disabled {
          opacity: 0.2;
          cursor: not-allowed;
        }
      }
    }
  }

  @media screen and (min-width: 768px) {
    .submit-message {
      padding: 30px;
    }
  }

  .right {
    display: none;
    padding: 20px 20px 20px 0;

    .right-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      border-radius: 24px;
      padding: 40px;
      height: 100%;
      background: var(--background-theme);
      overflow: hidden;

      .logo-wrapper {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 140px;
        align-self: center;
        top: 0;
      }
    }

    .background-wrapper {
      position: absolute;
      inset: 0;

      .background {
        position: absolute;
        width: auto;
        height: 100%;
      }
    }

    .info-text-box {
      color: var(--neutral-0);

      .info-heading {
        font-size: 44px;
        line-height: 54px;
        margin-bottom: 24px;
      }

      .highlight-text {
        display: inline-block;
        position: relative;
        font-weight: 700;
        color: var(--neutral-0);

        .underline {
          position: absolute;
          left: 0;
          bottom: 0;
        }
      }

      .info-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 0;
        font-size: var(--body-2-size);
        line-height: var(--body-2-line-height);
        list-style: none;

        .check {
          display: inline-block;
          width: 20px;
          height: 20px;

          svg {
            fill: var(--primary-green);
          }
        }

        .info-list-item {
          display: flex;
          gap: 12px;
          font-weight: 600;
          color: #dedee7;
          fill: var(--primary-green);
        }
      }
    }
  }

  .toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-red);
    color: var(--neutral-0);
    padding: 12px 16px;
    border-radius: 5px;
    font-size: var(--body-1-size);
    line-height: var(--body-1-line-height);
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
  }

  @media (min-width: 768px) {
    .container {
      grid-template-columns: 1fr 1fr;
    }

    .left {
      .logo-wrapper {
        display: none;
      }
    }

    .right {
      display: block;
    }
  }

  @media (min-width: 992px) {
    .container {
      grid-template-columns: 1fr 1fr;
    }

    .right {
      .right-wrapper {
        padding: 40px 60px;
      }
    }
  }
}

#confirmation {
  background: var(--primary-blue);
  max-height: 100vh;

  .content {
    position: relative;
    overflow: scroll;
    padding: 152px 20px 80px;
    padding-top: clamp(80px, 100px, 152px);
  }

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }

  .background-wrapper {
    position: fixed;
    inset: 0;

    .background {
      position: absolute;
      inset: 0;
    }
  }

  .heading-wrapper {
    display: flex;
    flex-direction: column;
    gap: 90px;
    text-align: center;
    position: relative;

    .heading {
      font-size: 32px;
      line-height: 44px;
      font-weight: 300;
      color: var(--primary-gray);

      .heading-bold {
        display: inline-block;
        font-weight: 700;
      }
    }

    .sub-title {
      font-size: 21px;
      line-height: 34px;
      max-width: 560px;
      align-self: center;
      color: var(--neutral-2);
    }

    .swirl-icon {
      position: absolute;
      top: 100px;
      right: calc(50% - 28px);
      width: 62px;
      height: auto;
    }
  }

  .download-buttons {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;

    .download-button {
      width: 182px;
      height: 53px;
      cursor: pointer;
      border: 0;
      background: transparent;
    }
  }

  .qr-codes {
    display: none;
    gap: 40px;
    position: relative;

    .qr {
      display: flex;
      flex-direction: column;
      gap: 24px;
      align-items: center;

      p {
        font-size: var(--body-2-size);
        line-height: var(--body-2-line-height);
        color: var(--neutral-2);
      }

      img {
        width: 170px;
        height: 170px;
      }
    }
  }

  @media screen and (max-aspect-ratio: 20/13) {
    .background-wrapper {
      .background {
        width: auto;
        height: 100%;
      }
    }
  }

  @media (min-width: 480px) {
    .heading-wrapper {
      .heading {
        font-size: 36px;
        line-height: 44px;
      }
    }
    .download-buttons {
      flex-direction: row;
    }
  }

  @media (min-width: 660px) {
    .container {
      max-width: 540px;
    }

    .heading-wrapper {
      gap: 20px;

      .heading {
        font-size: 54px;
        line-height: 64px;
      }

      .swirl-icon {
        top: 50px;
        right: -36px;
      }
    }

    .qr-codes {
      display: flex;
    }
  }

  @media (min-width: 768px) {
    .container {
      max-width: 740px;
    }

    .heading-wrapper {
      .heading {
        font-size: 64px;
        line-height: 72px;
      }

      .sub-title {
        font-size: 24px;
        line-height: 40px;
      }

      .swirl-icon {
        right: 36px;
      }
    }
  }
}
