/* ---------- GLOBAL ---------- */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: url('/static/apphome/image/background_login.webp') no-repeat center center fixed;
  background-size: cover;

  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  /* overflow: hidden; */
}

* {
  box-sizing: border-box;
}

.logo svg {
  height: 50px;
  width: auto;
  display: block;
  fill: white
}

/* ---------- NAVBAR ---------- */
.navbar {
  margin-top: 0.5%;
  background-color: #294671;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8%;
}

.navbar .logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.navbar ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin-left: 25px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.navbar a:hover {
  border-bottom: 2px solid #EDB85E;
  padding-bottom: 3px;
}

/* ---------- LOGIN CARD ---------- */
.singin-container {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px 30px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center; 
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  margin-top: 5%;
  margin-bottom: 10%;
  width: 380px;

  /* Evita que algo la tape */
  position: relative;
  z-index: 10;
}

/* ---------- TITULO ---------- */
.singin-container h2 {
  color: #294671;
  font-weight: 600;
  margin-bottom: 20px;
}

/* ---------- FORM ---------- */
.input-field{
  width: 80%;
  display: flex;
  flex-direction: row;
  margin-top: 0 px;
  margin-bottom: 25px;
}

form:not(.terms-conditions) {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Contenedor del input */
.input-element {
  width: 100%;
  padding: 12px;
  border: #F6E1BA 1px solid;
  border-radius: 8px;
  font-size: 16px;
  background-color: white;
  color: #294671;
}

.input-element::placeholder {
  color: #9b9b9b;
}


/* ---------- SUBMIT BUTTON ---------- */
button[type="submit"] {
  width: 60%;
  background-color: #e2a74a;
  color: #FFFDF5;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #d4922b;
}

/* ---------- TERMS & CONDITIONS ---------- */
.terms-conditions {
  display: flex;
  align-items: center;
  gap: 0px;
  width: 300px;
  height: 40px;
  padding-left: 8px;
}

.terms-conditions input[type="checkbox"] {
  accent-color: #ffdea9;
  transform: scale(1.1);
  margin: 0;
  width: 10%;
}

.terms-conditions span {
  width: 80%;
  text-align: left;
  font-size: 14px;
  color: #585858;
}

/* ---------- SOCIAL BUTTONS ---------- */
.social-singin {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.social-singin button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  margin: 0 10px;
  font-size: 1.3rem;
  cursor: pointer;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-singin button:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.facebook {
  background-color: #294671;
}

.google {
  background-color: #db4437;
}

/* ---------- FOOTER LINKS ---------- */
.register-text {
  color: #294671;
  font-family: Inter, sans-serif;
  font-size: 16px;
}

.register-text a {
  color: #294671;
  text-decoration: none;
  font-weight: bold;
}

.register-text a:hover {
  text-decoration: underline;
}

.forgot {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  color: #294671;
  font-weight: bold;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}


.message {
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 6px;
    font-size: 14px;
    color: #fff;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Éxito */
.message.success {
    background-color: #407c42a2; /* Verde */
}

/* Error */
.message.error {
      color: #b00020da;
}

/* Advertencia */
.message.warning {
    background-color: #ff9800; /* Naranja */
}

/* ==========================================
   RESPONSIVE – LOGIN PAGE
========================================== */
@media (max-width: 1024px) {

  

  /* -------- NAVBAR -------- */
  .navbar {
    padding: 15px 30px;
    margin-bottom: 6%;
  }

  .navbar ul li {
    margin-left: 15px;
  }

  /* -------- LOGIN CARD -------- */
  .singin-container {
    width: 60%;
    margin-top: 8%;
  }

}

/* ----------------- FOOTER ----------------- */
footer {
    background: #294671;
    width: 100%;
    text-align: center;
    color: #FFFFFF;
    padding: 2rem 0; 
}

.container-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 5%;
    padding-right: 5%;
}

.contac-footer p{
    text-align: left;
}

footer p {
  color: #FFFFFF; 
  margin: 0.25rem 0;
  text-align: center;
  font-size: 25px;
}

footer a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
}

  .social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .social-icons a {
    color: white;
    text-decoration: none;
    text-decoration: none;
    display: inline-flex;
    transition: transform 0.12s ease, opacity 0.12s ease;
  }

  .social-icons svg {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .social-icons a:hover svg {
    transform: translateY(-3px) scale(1.05);
    opacity: 0.85;
  }


/* ==========================================
   MOBILE – TABLETS PEQUEÑAS Y TELÉFONOS
========================================== */
@media (max-width: 768px) {

  /* -------- BODY -------- */
  body {
    /* overflow-x: hidden; */
    background-size: cover;
    background-position: center;
  }

  /* -------- NAVBAR -------- */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
    margin-bottom: 40px;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
  }

  .navbar ul li {
    margin: 8px 0;
  }

  /* -------- LOGIN CARD -------- */
  .singin-container {
    width: 90%;
    padding: 30px 20px;
    margin-top: 20px;
  }

  /* -------- FORM -------- */
  .input-field {
    width: 100%;
    margin-bottom: 20px;
  }

  .input-element {
    font-size: 15px;
    padding: 11px;
  }

  button[type="submit"] {
    width: 100%;
  }

  /* -------- TERMS -------- */
  .terms-conditions {
    width: 100%;
    height: auto;
    padding-left: 0;
    gap: 8px;
  }

  .terms-conditions input[type="checkbox"] {
    width: auto;
  }

  .terms-conditions span {
    width: 100%;
    font-size: 13px;
  }

  /* -------- SOCIAL -------- */
  .social-singin {
    gap: 15px;
  }

  /* -------- LINKS -------- */
  .register-text,
  .forgot {
    font-size: 14px;
  }

}


/* ==========================================
   SMALL MOBILE – 480px
========================================== */
@media (max-width: 480px) {

  .singin-container {
    width: 100%;
    padding: 25px 15px;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .input-element {
    font-size: 14px;
    padding: 10px;
  }

  button[type="submit"] {
    font-size: 0.9rem;
    padding: 9px;
  }

  .register-text {
    font-size: 13px;
  }

  .forgot {
    font-size: 13px;
  }

}
