/* comfortaa regular - latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  src: url('/public/assets/fonts/Poppins-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  src: url('/public/assets/fonts/Poppins-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  src: url('/public/assets/fonts/Poppins-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  src: url('/public/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  src: url('/public/assets/fonts/Poppins-Bold.ttf') format('truetype');
}

html {
  height: 100%;
  background: rgb(237, 241, 255);
  font-size: 16px;
}

body {
  min-height: 100%;
  background: rgb(237, 241, 255);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-weight: 300;
  display: flex;
}

/** Cards **/

.card {
  background: #fff;
  border: 0px solid #eee;
  box-shadow: 0 4px 8px rgba(50, 50, 75, 0.2);
  text-align: center;
  border-radius: .42rem;
  display: flex;
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

.card.card-menu {
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  right: 0;
  font-weight: 500;
  z-index: 1000;
}

.card.card-menu.active {
  display: flex;
  flex-direction: column;
}

.card.card-menu.bottom {
  top: 100%;
}

.card-menu > .menu-item {
  padding: 0.8em 1em;
  color: #555;
}

.card-menu > a.menu-item {
  text-decoration: none;
}

.card-menu > .menu-item:hover {
  color: #0d6efd;
  background: #fafafa;
}

/** Buttons **/
.btn {
  color: #70758f;
  border-color: #ebf1f5;
  background-color: #ebf1f5;
  font-size: .925rem;
  font-weight: 500;
  border-radius: .2rem;
  padding: 0.8rem 0.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  border: none;

  width: 100%;

  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.btn.btn-primary {
  /* // TODO: change back to blue after migration */
  /* background-color: #0d6efd; */
  background-color: #4cdb32;
  color: #fff;
}

.btn:hover {
  color: #606b7b;
  border-color: #dce2ea;
  background-color: #dce2ea;
}

.btn.btn-primary:hover,
.btn.btn-hover-primary:hover {
  background-color: #458efc;
  color: #fff;
}

.btn.icon-left > .fa {
  padding-right: 0.5em
}

.btn.icon-right > .fa {
  padding-left: 0.5em
}

.title {
  font-size: 1.8rem;
  font-weight: 400;
  color: #333;
}

.login-container {
  min-width: 360px;
  max-width: 1100px;
  margin: auto;
  justify-content: center;
}

.form-label {
  text-align: left;
  font-weight: 400;
  margin-top: 1em;
  color: #434656;
}

.form-control {
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #ccc;
  border-radius: .2rem;
  line-height: 2;
  padding: .25rem .5rem;
  color: #70758f;
}

.form-control:focus,
.form-control:active {
  outline: none;
  color: #434656;
}

.login-error,
.login-success {
  border-radius: .2rem;
  padding: .5em;
  background: #ffabab;
  color: #1d1a1a;
  font-weight: 400;
  margin-top: 1em;
}

.login-success {
  background: #addbff;
}

.forgot-password-link,
.copyrights {
  color: #8d91a5;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

.logo {
  width: 25%;
  padding-bottom: 2rem;
}

.lg-screen-image {
  background-size: 100%;
  background-color: #0d6efd;
  background-repeat: no-repeat;
  margin: -1px -1px -1px 0;
  display: flex;
  position: relative;
  overflow: hidden;

}

.lg-screen-image > img {
  width: 100%;
  object-fit: contain;
  justify-content: center;
  z-index: 3000;
}

.tablet-screen-image {
  padding: 50px 120px;
}

.tablet-screen-image > form > div > h1 {
  font-size: 35px;
}

.login-container a {
  text-decoration: none;
  color: #458efc;
}

.copyrights,
.tablet-screen-image > form > div > h1,
.tablet-screen-image > form > div > p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-container > form > input,
.form-container > form > a,
.form-container > form > button {
  margin: 1.5rem auto;
}

.tablet-screen-image > form > .logo ~ div {
  margin-bottom: 4em;
}

.copyrights {
  position: absolute;
  bottom: 10px;
  display: block;
  width: 28%;
  text-align: center;
}

.tablet-screen-image .curve-1,
.tablet-screen-image .curve-2,
.tablet-screen-image .curve-3 {
  display: none;
}

.curve-1 {
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.curve-1 svg {
  position: relative;
  display: block;
  width: calc(125% + 2px);
  z-index: 1;
}

.curve-2 {
  position: absolute;
  bottom: -30vh;
  left: -300px;
  width: 100%;
}

.curve-2 svg,
.curve-3 svg {
  width: 70%;
  overflow: visible;
  z-index: 1;
}

.curve-3 {
  position: absolute;
  right: 0;
  bottom: -25vh;
  width: 50%;
  height: 50%;
  overflow: visible;
}

@keyframes pulse {

  0%,
  100% {
    transform: translateX(-20%);
  }

  50% {
    transform: translateX(0);
  }
}

@keyframes rotate {
  0% {
    transform: rotateZ(0deg);
  }

  100% {
    transform: rotateZ(360deg);
  }
}

@keyframes rotate2 {
  0% {
    transform: rotateZ(360deg);
  }

  100% {
    transform: rotateZ(0deg);
  }
}

.curve-1 .d,
.curve-3 .d {
  /* fill: #81a1c7; */
}

.curve-1 .d {
  animation: pulse 100s linear infinite alternate;
}

.curve-2 .d {
  animation: rotate 25s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
  /* fill: rgb(181, 226, 246); */
}

.curve-3 .d {
  animation: rotate2 100s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}

/* .main-stop {
  stop-color: red;
}
.alt-stop {
  stop-color: green;
} */

.form-container > form > div > h1 {
  font-size: 2rem;
}

.image-icon {
  color: #fff;
  z-index: 100;
  font-size: 6rem;
  text-align: center;
  align-self: center;
  flex: auto;
  width: 200px;
}

@media (max-width: 768px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {

  body {
    /* background: url(../img/Tablet.png); */
    /* background:rgb(237, 241, 255); */
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 300;
    display: flex;
    overflow: hidden;
  }

  .login-container {
    min-width: 360px;
    max-width: 600px;
    margin: auto;
    justify-content: center;
    z-index: 3000;
  }

  .logo {
    width: 40%;
    padding-bottom: 2rem;
  }

  .card {
    background: none;
    border: none;
    box-shadow: 0 0 0 rgba(50, 50, 75, 0.2);
    padding: .75rem;
    text-align: center;
    border-radius: .42rem;
  }

  .lg-screen-image {
    display: none;
  }

  .tablet-screen-image {
    padding: 50px 10px;
  }

  .tablet-screen-image form :nth-child(2) {
    margin-bottom: 5rem;
  }

  .tablet-screen-image form input {
    background-color: #eee;
  }

  .card {
    position: unset;
  }

  .copyrights {
    position: absolute;
    bottom: 10px;
    display: block;
    width: 100%;
    text-align: center;
    left: 0;
  }

  .tablet-screen-image .curve-1,
  .tablet-screen-image .curve-2,
  .tablet-screen-image .curve-3 {
    display: unset;
  }

  .curve-1 {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    overflow: hidden;
  }

  .curve-1 svg {
    position: relative;
    display: block;
    width: calc(125% + 2px);
    z-index: 1;
  }

  .curve-2 {
    position: absolute;
    bottom: -200px;
    left: -400px;
    width: 100%;
  }

  .curve-2 svg,
  .curve-3 svg {
    width: 50%;
    overflow: visible;
    z-index: 1;
  }

  .curve-3 {
    position: absolute;
    right: 0;
    bottom: -30vh;
    width: 50%;
    height: 50%;
    overflow: visible;
  }

  @keyframes pulse {

    0%,
    100% {
      transform: translateX(-20%);
    }

    50% {
      transform: translateX(0);
    }
  }

  @keyframes rotate {
    0% {
      transform: rotateZ(0deg);
    }

    100% {
      transform: rotateZ(360deg);
    }
  }

  @keyframes rotate2 {
    0% {
      transform: rotateZ(360deg);
    }

    100% {
      transform: rotateZ(0deg);
    }
  }

  .curve-1 .d,
  .curve-3 .d {
    /* fill: #307cd3; */
  }

  .curve-1 .d {
    animation: pulse 100s linear infinite alternate;
  }

  .curve-2 .d {
    animation: rotate 25s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
    /* fill: rgb(194, 205, 250); */
  }

  .curve-3 .d {
    animation: rotate2 100s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
  }

  .form-container {
    position: relative;
    z-index: 1000;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {

  .tablet-screen-image {
    padding: 50px 50px;
  }

}

@media (min-width: 1025px) and (max-width: 1300px) {

  .tablet-screen-image {
    padding: 50px 80px;
  }

  .logo {
    width: 35%;
    padding-bottom: 2rem;
  }

}

@media (min-width: 1301px) {

  .tablet-screen-image {
    padding: 50px 110px;
  }

  .logo {
    width: 40%;
    padding-bottom: 2rem;
  }

}