/*
 * Copyright (c) 2024 Voxtell
 * All rights reserved.
 * 
 * This CSS file is protected under the Florida Statutes Chapter 501, Part II,
 * and Florida common law governing intellectual property rights and trade secrets.
 * Unauthorized copying, modification, distribution, or use of this file,
 * via any medium, is strictly prohibited.
 *
 * Any violation may result in civil and criminal penalties under
 * Florida state law.
 *
 * Version: 1.0
 * Last modified: 2024-11-14
 */

#login-logo {
  padding-left: 20px;
  display: flex;
  width: 140px;
}

#login-container {
  box-sizing: border-box;
  min-height: 100dvh;
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: var(--colors-gray-50);
}

#login-box {
  border: 1px solid var(--colors-border-base);
  box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

#reset-links {
  margin: 0;
  width: 100%;
}

.new-user-container {
  padding-top: 20px;
}

#login-container:has(#LoginForm, #resetNewuserForm) {
  #login-logo {
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 12px;
  }

  #LoginForm:before {
    content: 'Welcome back!';
    display: block;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--colors-gray-900);
  }

  #login-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;
    width: 50vw;
    margin: 0;

  }
  #footer {
    display: flex;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 20px;
    justify-content: center;
    gap: 8px;
  }
}

#voxtell-about {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  border-left: 1px solid var(--colors-border-base);
  background-image: linear-gradient(to bottom, var(--colors-primary-500), var(--colors-primary-600));
  background-color: var(--colors-primary-500);

  &:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
    min-height: 422px;
    background-image: url(img/login-waves.svg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1
  }

  #voxtell-updates {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-inline: 12px;
    padding-top: 12px;
  }

  #voxtell-products {
    padding-inline: 12px;
    padding-block: 12px;

    display: flex;
    flex-direction: row;
    gap: 8px;

    a {
      display: flex;
      height: 24px;
      flex-shrink: 0;
      padding-inline: 6px;
      padding-block: 3px;
      border-radius: 4px;
      transition-property: all;
      transition-duration: .2s;
      &:hover {
        transform: scale(1.2);
      }
      svg {
        height: 24px;
      }
    }
  }
}

@media (max-width: 1023px) {
  #login-container:has(#LoginForm, #resetNewuserForm) {
    #login-group {
      width: 100%;
    }
  }
  #voxtell-about {
    display: none;
  }
}

#voxtell-updates {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: var(--colors-white);

  .voxtell-carousel {
    width: 50vw;
    height: 400px;
    overflow: hidden;
  }

  .voxtell-carousel-slider {
    display: flex;
    position: relative;
    height: 100%;
  }

  .voxtell-update-indicator {
    display: flex;
    flex-direction: row;
    justify-content: center;

    gap: 4px;

    .voxtell-update-indicator-item {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: var(--colors-whiteAlpha-400);
      transition-property: background-color;
      transition-duration: .2s;

      &.active {
        background-color: var(--colors-primary-200);
      }
    }
  }

  .voxtell-update {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: absolute;
    inset: 0;

    opacity: 0;
    transform: translateX(100%);
    transition-property: opacity, transform;
    transition-duration: .4s;

    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 12px;
    text-align: center;

    font-size: 1rem;

    p {
      color: var(--colors-whiteAlpha-800);
      font-weight: 500;
      max-width: 460px;
      margin-bottom: 12px;
    }

    a {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 6px 12px;
      border-radius: 20px;
      border: 1px solid var(--colors-whiteAlpha-600);
      color: var(--colors-whiteAlpha-800);
      transition-property: all;
      transition-duration: .2s;
      &:hover {
        color: var(--colors-white);
        border-color: var(--colors-whiteAlpha-800);
      }
    }

    .voxtell-update-icon {
      width: 48px;
      height: 48px;
    }

    &.active {
      opacity: 1;
      transform: translateX(0);
    }
  }

}
