/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --fourth-color: #ff0000;
  --title-color: #141b4d;
  --text-color: #B8BBC7;
  --text-color-light: hsl(191, 45%, 42%);
  --border-color: hsl(0, 0%, 87%);
  --border-color-2: hsl(0, 0%, 43%);
  --body-color: #ffffff;
  --notif: #F5F5F5;
  --error: #ff5f5f;
  --success: #239cff;
  --container-color: #ffffff;
  --input-color:#ffffff;
  --base: #ffffff;
  --base-2: radial-gradient(circle at center,hsl(235, 44%, 40%) 50%, hsl(250, 89%, 15%) 100%);
  --base-3: radial-gradient(circle at center, hsl(235, 75%, 65%) 30%,rgb(36, 16, 125) 120%);
  --base-4: radial-gradient(circle at center, hsl(0, 99%, 70%) 30%,#ff0000 120%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Montserrat', sans-serif;
  --biggest-font-size: 2.25rem;
  --big-font-size: 2.1rem;
  --medium-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --big-font-size: 2.3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .3s; /* For animation dark mode */
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: var(--font-medium);
}

input,
button {
  font-family: var(--body-font);
  outline: none;
  border: none;
  background: none;
}

/*=============== THEME ===============*/
.change-theme {
  font-size: 1.25rem;
  color: #fff;
  cursor: pointer;
  transition: .3s;
}

.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.grid {
  display: grid;
}

.section {
  min-height: 100vh;
  padding: 2rem;
}


.main{
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*=============== LOGIN ===============*/
.login {
  position: relative;
  min-width: 400px;
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  background: var(--base);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.login .exit{
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: var(--big-font-size);
  display: none;
}
.form-container{
  width: 100%;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}
header{
  padding: 0 1.5rem;
  width: min(350px, 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
}
header h1{
  margin-bottom: 0.5rem;
  font-weight: 400;
}
header p{
  font-size: var(--small-font-size);
}
.logo{
  width: 160px;
  height: auto;
}
.form{
  padding: 15px 25px;
  min-width: 350px;
  width: 350px;
  color: var(--text-color-light);
}
.form *{
  color: var(--text-color-light);
}
.form header{
  margin-bottom: 1.5rem;
}
.error-text{
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  width: 100%;
  background: var(--error-color);
  color: var(--text-color-light);
  display: none;
  border-radius: 8px;
}
.input-field{
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  justify-content: left;
  text-align: center;
  align-items: center;
  background: var(--input-color);
  transition: 0.3s all ease;
}
.input-field .input-label{
  padding: 0px 6px;
  position: absolute;
  left: 0.5rem;
  background: var(--base);
  font-weight: 500;
  transition: 0.3s all ease;
  color: var(--text-color);
  z-index: 1;
}
.input-field input:focus ~ .input-label, 
.input-field input:valid ~ .input-label{
  font-size: var(--small-font-size);
  transform: translateY(-140%);
  color: var(--fourth-color);
  z-index: 3;
}
.input-field input:focus ~ .i,
.input-field input:valid ~ .i{
  color: var(--fourth-color);
}
.input-field:nth-last-child(2){
  margin-bottom: 2rem;
}
.input-field .i{
  position: absolute;
  right: 0.5rem;
  font-size: var(--h3-font-size);
  color: var(--text-color);
  transition: 0.3s all ease;
}
.input-field input{
  padding: 12px;
  width: 100%;
  height: 100%;
  color: var(--text-color);
  border-radius: 6px;
  border: 2px solid var(--border-color);
  transition: 0.3s all ease;
  z-index: 2;
}
.input-field input:focus,
.input-field input:valid{
  border: 2px solid var(--fourth-color);
}
.input-field input:focus{
  color: var(--title-color);
}
.input-field input::placeholder{
  color: var(--text-color);
  font-weight: var(--font-medium);
}
.button{
  padding: 12px 16px;
  width: 100%;
  background: var(--fourth-color);
  color: var(--input-color);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 6px;
  transition: 0.3s all ease;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.1rem;
}
.button i{
  color: white;
}
.button:hover{
  opacity: 0.7;
}
footer{
  position: absolute;
  bottom: 1rem;
  width: 100%;
}
footer h4{
  text-align: center;
  color: var(--text-color-light);
  font-weight: 400;
  font-size: var(--smaller-font-size);
}
footer a{
  font-weight: 600;
  color: var(--fourth-color);
}
.swiper{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:var(--base-4);
  transition: 0.3s all ease;
}
.swiper-pagination-bullet-active{
  background: var(--title-color) !important;
}
.bubbles{
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.bubbles .pantalla{
  width: 100%;
  height: 100%;
  backdrop-filter: blur(2px);
  background: #17171727;
  opacity: 0.7;
  z-index: 2;
}
.bubbles span, .bubbles svg{
  position: absolute;
  z-index: 1;
}
.bubbles svg{
  width: max(500px, 80%);
}
.bubbles span:nth-child(1){
  left: -6rem;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  opacity: 0.7;
  animation: bubble1 8s alternate infinite;
}
.bubbles span:nth-child(2){
  bottom: -4rem;
  right: -4rem;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: #ff5fa4;
  animation: bubble2 8s alternate infinite;
}
@keyframes bubble1 {
  0%{
    top: 0;
  }
  50%{
    top: -4rem;
    filter: blur(5px);
    transform: scale(1.5);
    background: #ff6a6a;
  }
  100%{
    top: 0;
  }
}
@keyframes bubble2 {
  0%{
    transform: scale(1);
  }
  50%{
    bottom: -8rem;
    right: -8rem;
    transform: scale(2);
    filter: blur(5px);
    background: #651ea8;
  }
  100%{
    transform: scale(1);
  }
}
.swiper-slide{
  padding: 0 2rem;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  z-index: 3;
}
/*#slide1{
  background: var(--base-2);
}
#slide2{
  background: var(--base-3);
}
#slide3{
  background: var(--base-4);
}*/
.swiper-slide .animation{
  width: min(100%, 400px);
  height: auto;
  object-fit: cover;
  filter: drop-shadow(10px 10px 8px #00000043);
  mix-blend-mode: darken;
  animation: flotar 4s linear infinite;
}
.swiper-slide:nth-child(2) .animation{
  width: min(100%, 450px);
}
.swiper-slide h1{
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: var(--big-font-size);
  color: var(--title-color);
  transition: 0.3s all ease;
  animation: flotar 4s linear infinite;
}
.swiper-slide p{
  max-width: 250px;
  font-weight: 500;
  color: var(--base);
  transition: 0.3s all ease;
  transform: translateY(-10px);
  animation: flotar 4s linear infinite;
}
.swiper .to-form{
  padding: 0.5rem 0.5rem;
  position: absolute;
  bottom: 2rem;
  font-size: var(--normal-font-size);
  color: var(--input-color);
  border-bottom: 1.5px solid var(--input-color);
  letter-spacing: 0.5px;
  transition: 0.3s all ease;
  display: none;
  z-index: 3;
}
.swiper .to-form:hover, .swiper .to-form:active{
  padding: 0.5rem 1.5rem;
  cursor: pointer;
}
@keyframes flotar {
  0%{
    transform: translateY(10px);
  }
  50%{
    transform: translateY(-10px);
  }
  100%{
    transform: translateY(10px);
  }
}
/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .section {
    padding: 1rem;
  }

}
@media screen and (max-width: 800px) {
  .content{
    min-height:auto;
    height: 250px;
  }
  .swiper-pagination{
    display: none;
  }
  .login{
    position: fixed;
    transform: translate(100%, 0);
    visibility: hidden;
    z-index: 4;
  }
  .login.show{
    transition: 0.5s all ease;
    visibility: visible;
    transform: translate(0, 0);
  }
  .swiper .to-form{
    display: block;
  }
  .login .exit{
    display: block;
    color: var(--fourth-color);
    transition: 0.3s all ease;
  }
  .login .exit:hover, .login .exit:active{
    opacity: 0.7;
  }
}
@media screen and (max-width: 430px) {
  .login{
    padding: 0;
    width: min-content;
    min-width: 100%;
  }
  .login .form{
    width: 100%;
    min-width: 250px;
  }
}
@media screen and (max-width: 380px) {
  :root {
    --big-font-size: 1.5rem;
  }
}
