@import './common.css';

/*
 * Particles background
 */

canvas {
  display: block;
  height: 100%;
}

#particles-js {
  height: 100vh;
  background-color: var(--primary-dark);
  background-image: url("");
  background-repeat: no-repeat;
  background-size: cover;
}

/*
 * Floating label
 */

.form-label-group {
  position: relative;
  margin-bottom: 24px;
}

.card-content {
  background: var(--white);
  border-radius: 5px;
  max-width: 394px;
}

.form-label-group > input,
.form-label-group > label {
  padding: var(--input-padding-y) var(--input-padding-x);
}

.form-label-group > label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  margin-bottom: 0; 
  line-height: 1.5;
  color: var(--light-gray);
  border: 1px solid transparent;
  border-radius: .25rem;
  transition: all .1s ease-in-out;
}

.form-label-group input:not(:placeholder-shown) {
  padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
  padding-bottom: calc(var(--input-padding-y) / 3);
}

.form-label-group input:not(:placeholder-shown) ~ label {
  padding-top: calc(var(--input-padding-y) / 3);
  padding-bottom: calc(var(--input-padding-y) / 3);
  font-size: 12px;
  color: var(--light-gray);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.form-control:focus {
  border-color: var(--cool-gray);
  outline: 0;
  box-shadow: 0 0 0 0.2rem transparent;
}

input[type="password"]:not(:placeholder-shown) {
  letter-spacing: 5px;
  font-weight: 700;
}

.btn-plain-primary {
  padding: 15px 15px;
}

/*
 * Checkbox
 */

input[type=checkbox] {
  display: none;
}

.test-block {
  flex: 1;
  padding: 0 10px;
}

label:not(.form-label-group label) {
  display: inline-block;
  cursor: pointer;
  padding: 0;
  padding-left: 25px;
  padding-top: 5px;
  position: relative;
}

input[type=checkbox]+label:after {
  font-family: 'Material Icons';
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  position: absolute;
  left: 0;
  border: 1px solid var(--cool-gray);
}

input[type=checkbox]:checked+label:after {
  content: "\E5CA";
  color: var(--white);
  font-size: 16px;
  text-align: center;
  line-height: 16px;
  background: var(--primary);
  border-color: var(--primary);
}

/*
* Utilities
*/
.title-light {
  font-family: var(--default-font-family);
  font-size: 32px;
  line-height: 1.25;
  color: var(--primary-dark);
  font-weight: 600;
}

.container-custom{
  min-height: 100vh;
  background: var(--white);
}

@media screen and (max-width: 768px) {
  .title-light {
    font-size: 26px;
    color: var(--dark);
  }
}

@media screen and (max-width: 576px) {
  #particles-js {
    position: relative;
  }

  .login-section {
    position: absolute;
    top: 20%;
    margin: 0 auto;
  }

  .img-fluid.img-switch {
    content: url('../assets/publicis-logo-white.svg');
  }

  div>img.img-fluid.img-switch {
    margin: 0 auto;
  }

  .card-content {
    padding: 5px 20px 20px;
    margin: 25px auto 0;
  }
 
}

@media screen and (max-width: 420px) {
  .card-content {
    background: var(--white);
    border-radius: 5px;
    padding: 5px 20px 20px;
    margin: 25px auto 0;
    max-width: calc(100vw - 40px);
  }
}