/* Fonts */
@font-face {
  font-family: "Satoshi";
  src: url("./fonts/Satoshi-Regular.woff2") format("woff2"),
    url("./fonts/Satoshi-Regular.woff") format("woff"),
    url("./fonts/Satoshi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

/* Globals */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  width: 100%;
  height: 100vh;
  font-family: "Satoshi", sans-serif;
}

body::after {
  content: "";
  width: 100%;
  height: 100vh;
  position: absolute;
  background-color: #fff;
  top: 0;
  left: 0;
  z-index: 999;
}

body::before {
  content: "";
  width: 40px;
  height: 40px;
  border: 3px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 1s linear infinite;
  z-index: 1000;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.icollect-login-wrapper {
  display: flex;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

.icollect-login-wrapper > div:nth-child(1) {
  width: 40%;
  overflow-y: auto;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .icollect-login-wrapper > div:nth-child(1) {
    width: 100%;
  }
}

.icollect-login-image {
  background-image: url(../img/bg.png);
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: 75%;
  background-repeat: no-repeat;
  background-color: #f3f3f3;
}

@media screen and (max-width: 768px) {
  .icollect-login-image {
    display: none;
  }
}

.icollect-login-logo {
  background-image: url(../img/logo.jpeg);
  background-size: contain;
  height: 100px;
  background-repeat: no-repeat;
}

/* Default styles */
.icollect-login-wrapper > div:nth-child(1) {
  padding: 0 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.icollect-login-wrapper > div:nth-child(1) > div {
  max-width: 700px;
  margin-inline: auto;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .icollect-login-wrapper > div:nth-child(1) > div {
    max-width: 100%;
    margin-inline: unset;
  }
}

#kc-header {
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 70px;
  margin-left: 0;
  pointer-events: none;
}

#kc-header + div {
  padding: 3.5rem 2.5rem;
  background-color: #ECECEC6E;
  width: 100%;
  max-width: 600px;
}

#kc-page-title {
  text-align: center;
  color: #707070;
  font-size: 1.5rem;
}

/* Input Styles */

.icollect-form-group {
  margin-top: 1.5rem;
}

.icollect-form-group input {
  width: 100%;
  padding: 0.85rem 0.75rem;
  font-family: "Satoshi", sans-serif;
  font-size: 1rem;
  margin-top: 0.25rem;
  border: 1px solid rgba(180, 180, 180, 1);
  border-radius: 0.25rem;
  outline: none;

  &:focus {
    outline: 1px solid #70707080;
  }
}

.icollect-form-group label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #4a4949;
}

.icollect-form-group label[for="password"] {
  display: flex;
  justify-content: space-between;
}

.icollect-form-group label[for="password"] + div {
  position: relative;
}

.icollect-form-group label[for="password"] + div > button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(calc(-50% + 0.15rem));
  background-color: transparent;
  border: none;
  outline: none;
  cursor: pointer;
}

.icollect-form-group input[type="submit"] {
  margin-top: 2rem;
  background-color: #1063f1;
  color: #fff;
}

.icollect-form-group [id*="input-error"] {
  color: #F11046;
  font-size: 0.85rem;
}

.icollect-form-group input[aria-invalid="true"] {
  border: 1px solid #F11046;
  background-color: #F1104614;
}

.icollect-form-group a {
  color: #1063f1;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.85rem;
}

.icollect-form-group .icollect-show-password::after,
.icollect-form-group .icollect-hide-password::after {
  color: #1063f1;
  font-style: normal;
  font-family: "Satoshi", sans-serif;
  font-weight: bold;
  padding: 0.25rem;
}

.icollect-form-group .icollect-show-password::after {
  content: "Show";
}

.icollect-form-group .icollect-hide-password::after {
  content: "Hide";
}

/* Footer Style */

.icollect-footer {
  color: #707070;
  text-align: center;
  margin-top: auto;
  font-size: .85rem;
}