@import url("reset.css");

@import url('https://fonts.googleapis.com/css2?family-Poppins:wght@400;600&display-swap');

body {
    font-family: 'Poppinq', sans-serif;
    min-height: 100vh;
    background: linear-gradient(to right, #ffffff,#38B6FF);
    display: flex;
    font-family: sans-serif;
    background-color: #81d4fa;
    font-weight: bold;
    align-items: center;
    justify-content: center;
}

/*Bouton*/

.btn{
    display: flex;
    flex-direction: column;
    margin-left: 17rem;
    margin-top: -22rem;
}

.btn:link,
.btn:visited {
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 100px;
    font-size: 60%;
    transition: all .2s;
    position: absolute;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn-white {
    background-color: #fff;
    color: #777;
}

.btn::after {
    content: "";
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: all .4s;
}

.btn-white::after {
    background-color: #fff;
}

.btn:hover::after {
    transform: scaleX(1.5) scaleY(1.7);
    opacity: 0;
}

.btn-animated {
    animation: moveInBottom 5s ease-out;
    animation-fill-mode: backwards;
}

/* Model */

.model {
    width: 450px;
    background: rgba(255,255,255, .5);
    padding: 4rem;
    border-radius: 10px;
    border-radius: relative;
}

.model::before {
    content: '';
    position: absolute;
    background: rgba(255,255,255, .15);
    inset: 0;
    transform: rotate(-5deg);
    z-index: -1;
}

.main-logo {
    margin-bottom: 2rem;
}

.main-logo img {
    width: 200px;
}

.main-logo, .login-card-header,.login-card-footer {
    text-align: center;
}

.BoutonVisiteur {
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, .4);
    width: 150px;
    height: 50px;
    background: rgba(255,255,255,.3);
    padding: 1rem 1.5rem;
    border-radius: 30px;
}

.BoutonVisiteur:hover {
    background: white;
    transform: scale(1.1);
}

.model a{
    text-decoration: none;
    color: #35339a;
}

.model a:hover {
    text-decoration: underline;
}

.login-card-header {
    margin-bottom: 2rem;
}

.login-card-header h1 {
    font-size: 2rm;
    font-weight: 600;
    margin-bottom: .5rem;
}

.login-card-header h1 + div {
    font-size: calc(1rem * .8);
    opacity: .8;
}

.login-card-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-card-form .form-item {
    position: relative;
}

.login-card-form .form-item .form-item-icon {
    position: absolute;
    top:.82rem;
    left: 1.4rem;
    font-size: 1.3rem;
    opacity: .4;
}

/*CheckBox*/

.check {
  cursor: pointer;
  position: relative;
  margin: auto;
  width: 18px;
  height: 18px;
  -webkit-tap-highlight-color: transparent;
  transform: translate3d(0, 0, 0);
}
.check:before {
  content: "";
  position: absolute;
  top: -20px;
  left: -15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34,50,84,0.03);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.check svg {
  position: relative;
  z-index: 1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: #c8ccd4;
  stroke-width: 1.5;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
}
.check svg path {
  stroke-dasharray: 60;
  stroke-dashoffset: 0;
}
.check svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 66;
}
.check:hover:before {
  opacity: 1;
}
.check:hover svg {
  stroke: #4285f4;
}
#cbx:checked + .check svg {
  stroke: #4285f4;
}
#cbx:checked + .check svg path {
  stroke-dashoffset: 60;
  transition: all 0.3s linear;
}
#cbx:checked + .check svg polyline {
  stroke-dashoffset: 42;
  transition: all 0.2s linear;
  transition-delay: 0.15s;
}

.login-card-form .form-item-other {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: calc(1rem*.8);
    margin-bottom: .5rem;
}

.login-card-footer {
    margin-top: 1.5rem;
    font-size: calc(1rem*.8);
}

.model input[type="text"],
.model input[type="password"],
.model input[type="email"] {
    border: none;
    outline: none;
    background: rgba(255,255,255,.3);
    padding: 1rem 1.5rem;
    padding-left: calc(1rem * 3.5);
    border-radius: 100px;
    width: 100%;
    transition: background .5s;
}

.model input:focus {
    background: white;
}

.model input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: black;
}

.model button {
    background: #38b6ff;
    color: white;
    padding: 1rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background .5s;
}

.login-card-form button:hover {
    background-color: rgba(84,192,255,.85);
    cursor: pointer;
}

/* Les réseaux social **/

.social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.social > div {
    opacity: .8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: calc(1rem * .8);
}

.lesLogo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.lesLogo a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, .6);
    border-radius: 100px;
    transition:  all .5s;
}

.lesLogo a:hover {
    background: white;
    transform: scale(1.1);
}

/* Responsive */

@media (max-width: 768px) {
    body {
        padding: 2rem 0;
    }

    .login-card {
        width: 300px;
        padding: 2rem;
    }
}