﻿/** LOGIN **/

@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Rubik", sans-serif;
}

:root {
  --Principal: #282a42;
  --Secundario: #30334e;
  --Texto: #eaeaffde;
  --TextoHover: #eaeaff56;
  --Bordes: #eaeaff56;
  /* DarkMode */
  /* --Principal: #282a42;
    --Secundario: #30334e;
    --Texto: #eaeaffde; */
  /* LightMode */
  /*--Principal: #eeeeee;
	--Secundario: #ffffff;
	--Texto: #4c4e64de;
	--TextoHover: #4c4e6414;
	--Bordes: rgba(0, 0, 0, 0.35);*/

  --Rojo: #7a202e;
  --Carmesi: #a01f3b;
  --negroGris: #363636;
  --Dorado: #bc955b;
  --Arena: #dcc9a4;
  --Blanco: #ffffff;
  --Texto: #707070;
  --TextoBlanco: #ffffff9f;
  --TextoMuted: #bebebeb4;

  /* --- Nuevos colores de la administración --- */
  /* Font Colors */
  --font-50: #f4f6f3;
  --font-100: #e5e9e2;
  --font-200: #cad4c6;
  --font-300: #a5b5a0;
  --font-400: #8c9f86;
  --font-500: #5b7455;
  --font-600: #465a41;
  --font-700: #384834;
  --font-800: #2d3a2b;
  --font-900: #263024;
  --font-950: #141b13;
  /* Aqua Colors */
  --aqua-50: #f1fcfb;
  --aqua-100: #cff8f1;
  --aqua-200: #9ff0e4;
  --aqua-300: #67e1d5;
  --aqua-400: #38c9bf;
  --aqua-500: #20b2aa;
  --aqua-600: #168b86;
  --aqua-700: #166f6d;
  --aqua-800: #165958;
  --aqua-900: #174a4a;
  --aqua-950: #072b2c;
  /* Green Colors */
  --green-50: #f6fde8;
  --green-100: #e9f9ce;
  --green-200: #d3f4a2;
  --green-300: #b6ea6c;
  --green-400: #9adc3f;
  --green-500: #77bc1f;
  --green-600: #5e9b15;
  --green-700: #487615;
  --green-800: #3b5e16;
  --green-900: #335017;
  --green-950: #182c07;
  /* Yellow Colors */
  --yellow-50: #fdfee8;
  --yellow-100: #fafec3;
  --yellow-200: #fafe8a;
  --yellow-300: #fcfc48;
  --yellow-400: #f9ee16;
  --yellow-500: #e9d509;
  --yellow-600: #d3b005;
  --yellow-700: #a07908;
  --yellow-800: #855f0e;
  --yellow-900: #714e12;
  --yellow-950: #422906;
}

/* Contenedor principal */
.login_container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--Blanco);
  overflow: hidden;
}

/* Contenedor para el login */
.login_box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor izquierdo del login */
.login_part_1 {
  width: 35%;
  height: 95%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Contenedor izquierdo del logo */
.login_logo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  animation: mymove 5s infinite;
  animation-duration: 15s;
}

/* Logo */
.login_logo img {
  width: 480px;
  height: 300px;
  object-fit: contain;
}

.login_title {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login_title h2 {
  font-size: 3rem;
  color: var(--aqua-200);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.login_title.principal h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--aqua-900);
}

.login_text {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.login_text p {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--aqua-800);
}

.login_text p span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aqua-600);
}

.login_text p strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--aqua-600);
}

.login_part_2 {
  width: 65%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--aqua-800);
  border-radius: 300px 0 0 300px / 700px 0 0 700px;
  overflow: hidden;
  animation: entrada 1s;
}

.login_form {
  position: relative;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login_input {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.login_field {
  width: 100%;
  position: relative;
  border-bottom: 2px solid var(--Blanco);
  margin: 1rem 0;
}

.login_field input {
  width: 100%;
  padding: 0 0.5rem;
  height: 40px;
  font-size: 1.2rem;
  border: none;
  outline: none;
  color: var(--Blanco);
  background: transparent;
  font-weight: 500;
}

.login_field span::before {
  content: " ";
  position: absolute;
  top: 40px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--aqua-200);
  transition: 0.5s;
}

.login_field input:focus ~ .login_label,
.login_field input:valid ~ .login_label {
  top: -10px;
  color: var(--aqua-200);
  background: transparent;
  padding: 0;
}

.login_field input:focus ~ span::before,
.login_field input:valid ~ span::before {
  width: 100%;
}

.login_label {
  position: absolute;
  display: flex;
  align-items: center;
  top: 50%;
  left: 5px;
  font-size: 1.5rem;
  color: var(--Blanco);
  padding: 0.2rem;
  transform: translateY(-50%);
  pointer-events: none;
  transition: 0.5s;
  font-weight: 700;
}

.login_label i {
  margin-right: 0.5rem;
}

.login_options {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.login_check {
  width: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.login_check input[type="checkbox"] {
  -webkit-appearance: none;
}

.login_check label {
  position: relative;
  width: 260px;
  font-size: 1.2rem;
  color: var(--Blanco);
  cursor: pointer;
}

.login_check label::after {
  content: "¿Mantener sesion abierta?";
}

.login_check input[type="checkbox"]:checked + label::after {
  content: "Activado";
  color: var(--green-500);
  font-weight: 700;
}

.login_recordar {
  width: 50%;
  width: 212px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.login_recordar a {
  position: relative;
  font-size: 1.2rem;
  color: #adadad;
}

.login_recordar a::after {
  position: absolute;
  content: "";
  width: 0%;
  height: 2px;
  background: var(--Blanco);
  left: 0;
  bottom: -5px;
  transition: 0.5s;
}

.login_recordar:hover a::after {
  width: 100%;
}

.login_submit {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login_submit button[type="submit"] {
  width: 350px;
  height: 50px;
  border: 1px solid var(--green-500);
  background: var(--green-500);
  border-radius: 25px;
  font-size: 1.5rem;
  color: var(--Blanco);
  font-weight: 700;
  cursor: pointer;
  outline: none;
  transition: 0.5s;
}

.login_submit button[type="submit"]:hover {
  border-color: var(--green-600);
  background: var(--green-600);
}

@keyframes mymove {
  0% {
    transform: translateY(0px);
  }

  25% {
    transform: translateY(-15px);
  }

  50% {
    transform: translateY(0px);
  }

  75% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes entrada {
  0% {
    transform: translateX(300%);
  }

  100% {
    transform: translateX(0);
  }
}

@media (max-width: 1200px) {
  .login_options {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .login_check label {
    text-align: center;
  }

  .login_check {
    margin-bottom: 1rem;
    justify-content: center;
    align-items: center;
  }

  .login_recordar {
    justify-content: center;
    align-items: center;
  }

  /* Logo */
  .login_logo img {
    width: 300px;
    height: 100px;
    object-fit: contain;
  }
}

@media (max-width: 1000px) {
  .login_box {
    flex-direction: column-reverse;
  }

  .login_part_1 {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1rem;
  }

  .login_part_2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--aqua-800);
    border-radius: 0 0 100px 100px / 0 0 50px 50px;
    overflow: hidden;
  }

  .login_logo {
    margin-top: 2rem;
  }

  /* Logo */
  .login_logo img {
    width: 300px;
    height: 100px;
    object-fit: contain;
  }

  @keyframes entrada {
    0% {
      transform: translateY(-300%);
    }

    100% {
      transform: translateY(0);
    }
  }
}

@media (max-width: 413px) {
  .login_title h2 {
    font-size: 1.2rem;
  }

  .login_title.principal h2 {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
  }

  .login_submit button[type="submit"] {
    width: 250px;
    height: 50px;
    font-size: 1.4rem;
  }

  .login_text p {
    font-size: 0.9rem;
  }

  .login_text p span {
    font-size: 0.9rem;
  }
}

/* CARGA DE LA PAGINA */

.loader_cover {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: var(--aqua-800);
  z-index: 10;
  transition: 1s;
}

.loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: -76px 0 0 -76px;
  border: 16px solid var(--Blanco);
  border-radius: 50%;
  border-top: 16px solid var(--green-500);
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/** QUITAR COLOR AZUL EN AUTOCOMPLETADO **/

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--aqua-800) inset !important;
  -webkit-text-fill-color: white;
}
