/* ============================================================
   style.css — Login QHORTE
   Solo lo usa index.php (página de login)
   ============================================================ */

/* ── Animaciones ── */

@keyframes appear {
  0%   { opacity: 0; transform: translateY(10rem); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes appear-side {
  0%   { opacity: 0; transform: translateX(-5rem); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes appear-fade {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

/* ── Reset y base ── */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; }

body {
  max-height: 100%;
  background-color: #f9f9f9;
  background-image: url("../imagenes/micro16.png");
  background-size: cover;
  background-repeat: no-repeat;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
}

/* ── Layout principal ── */

.main_section {
  position: absolute;
  right: 0;
  width: 65%;
  height: 100%;
}

.top_section {
  position: relative;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.bottom_section {
  position: relative;
  height: 50%;
}

/* ── Formulario de login ── */

.login_section {
  position: relative;
  width: 45%;
  min-width: 350px;
  max-width: 395px;
  height: 319px;
  max-height: 319px;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
}

.login_form-image {
  height: 30%;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  animation: appear-fade 3s;
}

.login_form-image img { max-width: 80%; }

.form-group {
  position: relative;
  width: 100%;
  height: 50px;
}

.form_input {
  position: absolute;
  width: 100%;
  border: 1px solid whitesmoke;
  border-radius: 0.7rem;
  font-size: inherit;
  font-family: inherit;
  color: #767b91;
  outline: none;
  height: 4rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}

.form_input:focus { border-color: rgb(49, 170, 253); }
.form_input:hover { border-color: rgb(88, 188, 255); cursor: text; }

.form_label {
  text-align: center;
  position: absolute;
  bottom: 4rem;
  left: 1.5rem;
  color: #767b91;
  transition: bottom 200ms ease-in, left 200ms ease-in, font-size 200ms ease-in;
}

.form_input:focus ~ .form_label,
.form_input:not(:placeholder-shown).form_input:not(:focus) ~ .form_label {
  bottom: 3.6rem;
  left: 0.8rem;
  background-color: #fff;
  padding: 0 4px;
  font-size: 0.8rem;
}

/* Feedback de validación */
.form_input.is-invalid { border-color: #dc3545; }
.form_input.is-valid   { border-color: #198754; }
.field-feedback {
  font-size: 12px;
  color: #dc3545;
  min-height: 16px;
  margin-top: 3px;
}

.form-button {
  display: flex;
  justify-content: center;
}

.form-button button {
  padding: 0.7rem 10rem;
  border: none;
  border-radius: 0.7rem;
  background-color: rgb(88, 188, 255);
  color: whitesmoke;
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-button button:hover {
  background-color: rgb(49, 170, 253);
  box-shadow: 0 5px 10px 0 rgba(28, 28, 28, 0.1);
  cursor: pointer;
}

.form_footer {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  font-weight: 200;
  color: #767b91;
}

/* ── Sección de contacto (reservada para futura publicación de servicios) ── */

.contact_section {
  display: none;
  width: 90%;
  max-width: 800px;
  min-width: 750px;
  height: 257px;
  border-radius: 1rem;
  position: absolute;
  left: 10px;
  bottom: 32px;
  background-color: #fff;
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
  animation: appear-side 2s;
}

.contact_side-l { width: 30%; height: 100%; }

.contact_side-r {
  display: flex;
  flex-direction: column;
  width: 70%;
  height: 100%;
}

.r_section { height: 50%; width: 100%; }

.bot, .top {
  padding-right: 5rem;
  display: flex;
  justify-content: end;
  align-items: center;
  color: rgb(49, 170, 253);
}

.bot { border-top: 0.2rem solid whitesmoke; }

.icon { font-size: 5rem; }
.description { color: #767b91; margin-left: 30px; }

/* ── Texto inferior + carousel ── */

.bottom_text_area {
  height: 30%;
  padding-top: 20px;
  font-size: 3rem;
  font-weight: 200;
  color: #767b91;
  text-align: center;
  animation: appear 3s;
}

.main_text_area {
  display: none;
  animation: appear-fade 3s;
}

.carousel_area {
  display: flex;
  width: 100%;
  height: 70%;
  justify-content: center;
  align-items: end;
}

/* ── Carousel 3D ── */

#contentContainer {
  width: 620px;
  height: 200px;
  overflow: hidden;
}

.trans3d {
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0);
}

#carouselContainer {
  position: absolute;
  margin-left: -500px;
  margin-top: -500px;
  left: 50%;
  top: 50%;
  width: 1000px;
  height: 1000px;
}

.carouselItem {
  width: 320px;
  height: 130px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -160px;
  margin-top: -50px;
  visibility: hidden;
}

.carouselItemInner {
  width: 320px;
  height: 180px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -160px;
  margin-top: -90px;
  text-align: center;
}

.carouselItemInner img {
  width: 320px;
  height: 180px;
  border: 10px solid rgba(255, 255, 255, 0.75);
}

/* ── Responsive ── */

@media only screen and (max-width: 1200px) {
  .main_section { width: 100%; }
}

@media only screen and (max-width: 600px) {
  body { background-image: none; }
  .main_section { width: 100%; }
  .bottom_section { display: none; }
  .top_section {
    flex-direction: column-reverse;
    justify-content: space-around;
    height: 100%;
    width: 100%;
  }
  .login_section { width: 80vw; max-width: 80vw; margin-bottom: 0; }
  .main_text_area {
    height: auto;
    display: block;
    padding-top: 20px;
    font-size: 2rem;
    font-weight: 200;
    color: #767b91;
    text-align: center;
  }
}

@media only screen and (max-height: 650px) {
  .main_text_area { display: none; }
}
