/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Unbounded:wght@200..900&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(4, 82%, 54%);
  --first-color-alt: hsl(4, 78%, 50%);
  --hover-color: hsl(0, 0%, 95%);
  --title-color: hsl(0, 0%, 12%);
  --text-color: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 100%);
  --border-color: hsl(0, 0%, 72%);
  --body-color: hsl(0, 0%, 100%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Montserrat", sans-serif;
  --second-font: "Unbounded", sans-serif;
  --bigger-font-size: 1.5rem;
  --normal-font-size: .938rem;
  --small-font-size: .875rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --bigger-font-size: 1.75rem;
    --normal-font-size: 1rem;
    --small-font-size: .938rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
button {
  border: none;
  outline: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/*=============== LOGIN ===============*/
.login {
  height: 100vh;
}

.login__container {
  align-items: center;
}

.login__swiper {
  display: none;
}

.login__data {
  text-align: center;
  color: var(--title-color);
}

.login__title {
  font-size: var(--bigger-font-size);
  font-family: var(--second-font);
  margin-bottom: 3rem;
}

.login__description {
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
}

.login__button, 
.login__button-border {
  width: 100%;
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-semi-bold);
  cursor: pointer;
  transition: background-color .4s, box-shadow .4s;
}

.login__button {
  background-color: var(--first-color);
  color: var(--white-color);
}

.login__button:hover {
  background-color: var(--first-color-alt);
  box-shadow: 0 8px 24px hsla(4, 80%, 40%, .4);
}

.login__button-border {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .5rem;
  background-color: var(--white-color);
  border: 2px solid var(--border-color);
  color: var(--title-color);
}

.login__button-border i {
  font-size: 1.5rem;
  font-weight: initial;
}

.login__button-border:hover {
  background-color: var(--hover-color);
}

.login__line {
  position: relative;
  justify-self: center;
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.login__line::before, 
.login__line::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  height: 1px;
  background-color: var(--border-color);
  margin: auto 0;
}

.login__line::before {
  right: 1.5rem;
}

.login__line::after {
  left: 1.5rem;
}

.login__content {
  row-gap: .75rem;
  margin-bottom: .75rem;
}

.login__box {
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--white-color);
}

.login__input {
  width: 100%;
  background: none;
  border: 2px solid var(--border-color);
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  transition: border .4s;
  z-index: 1;
}

.login__input::placeholder {
  color: var(--title-color);
}

.login__input:focus {
  border-color: var(--title-color);
}

.login__input:autofill {
  transition: background-color 6000s, color 6000s;
}

.login__box i {
  position: absolute;
  right: 1.25rem;
  font-size: 1.5rem;
  color: var(--title-color);
}

.login__eye {
  z-index: 10;
  cursor: pointer;
}

.login__forgot {
  display: block;
  width: max-content;
  margin: 0 0 1.5rem auto;
  font-size: var(--small-font-size);
  color: var(--first-color);
}

.login__switch {
  display: flex;
  justify-content: center;
  column-gap: .5rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

.login__sign {
  color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices */
@media screen and (min-width: 540px) {
  .login__area {
    grid-template-columns: 340px;
    justify-content: center;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .login {
    place-items: center;
  }
  .login__container {
    grid-template-columns: 592px 340px;
    column-gap: 5rem;
    width: 1110px;
    height: 700px;
    background-color: var(--body-color);
    box-shadow: 0 0 24px hsla(0, 0%, 0%, .15);
    padding: .75rem;
    border-radius: 3rem;
  }
  .login__swiper {
    display: block;
    overflow: hidden;
    height: 100%;
    position: relative;
    border-radius: 2.5rem;
    margin-inline: initial;
    clip-path: path("M0 37.8182C0 16.9318 17.9784 0 40.156 0H551.843C574.902 0 593.224 18.2478 591.936 39.9306L556.273 640.294C555.083 660.328 537.487 676 516.18 676H40.156C17.9784 676 0 659.068 0 638.182V37.8182Z");
  }
  .login__swiper-img {
    width: 592px;
    object-fit: cover;
    border-radius: 2.5rem;
    clip-path: path("M0 37.8182C0 16.9318 17.9784 0 40.156 0H551.843C574.902 0 593.224 18.2478 591.936 39.9306L556.273 640.294C555.083 660.328 537.487 676 516.18 676H40.156C17.9784 676 0 659.068 0 638.182V37.8182Z");
  }
  .login__swiper-data, 
  .login__swiper-social {
    position: absolute;
    z-index: 10;
    color: var(--white-color);
  }
  .login__swiper-data {
    top: 5.5rem;
    left: 3rem;
  }
  .login__swiper-subtitle {
    font-size: var(--small-fomt-size);
    font-weight: var(--font-semi-bold);
    margin-bottom: .5rem;
  }
  .login__swiper-title {
    font-size: var(--bigger-font-size);
    font-family: var(--second-font);
  }
  .login__swiper-social {
    left: 3rem;
    bottom: 4rem;
  }
  .login__swiper-links {
    display: flex;
    align-items: center;
    column-gap: .75rem;
  }
  .login__swiper-link {
    color: var(--white-color);
    font-size: 1.5rem;
    transition: transform .4s;
  }
  .login__swiper-link:hover {
    transform: translateY(-.25rem);
  }

  .login .swiper-pagination-bullets {
    width: initial;
    left: initial;
    right: 5rem;
    bottom: 4rem;
  }
  .login .swiper-pagination-bullet {
    background-color: var(--white-color);
    opacity: .6;
    transition: opacity .4s;
  }
  .login .swiper-pagination-bullet-active {
    opacity: 1;
  }
}
