/* styles_login.css */

/* -------------------- */
/* TIPOGRAFÍA GLOBAL */
/* -------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&display=swap');

body, input, button, h2 {
  font-family: 'Inter', sans-serif;
  color: #000;
  margin: 0;
  padding: 0;
}

/* -------------------- */
/* WRAPPER: PANTALLA DIVIDIDA */
/* -------------------- */
.login-wrapper {
  display: flex;
  height: 100vh;
  position: relative;
}

/* -------------------- */
/* LADO IZQUIERDO: IMAGEN */
/* -------------------- */
.login-image {
  flex: 1;
  background-image: url('../../public/img/src/RAF_4770.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 0;
}

/* -------------------- */
/* LADO DERECHO: FORMULARIO */
/* -------------------- */
.login-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  position: relative;
}
.login-form-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,0.85);
  z-index: 0;
}

/* -------------------- */
/* CONTENEDOR DEL LOGIN */
/* -------------------- */
.login-container {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 50px 35px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  text-align: center;
  z-index: 1;
  transition: transform 0.3s;
}
.login-container:hover {
  transform: translateY(-4px);
}

/* -------------------- */
/* LOGO */
/* -------------------- */
.login-logo {
  width: 90px;
  margin-bottom: 25px;
}

/* -------------------- */
/* ENCABEZADO */
/* -------------------- */
.login-container h2 {
  margin-bottom: 28px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* -------------------- */
/* CAMPOS DE FORMULARIO */
/* -------------------- */
.form-group {
  position: relative;
  margin-bottom: 22px;
}
.form-group .icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #10F596;
  font-size: 1.2rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 50px;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  border-color: #10F596;
  box-shadow: 0 0 0 0.2rem rgba(16,245,150,0.3);
  outline: none;
}

/* -------------------- */
/* BOTÓN LOGIN */
/* -------------------- */
.btn-login {
  padding: 14px;
  font-size: 1.1rem;
  border-radius: 50px;
  background-color: #10F596;
  border: 1px solid #10F596;
  color: #000;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
  background-color: #0ec587;
  border-color: #0ec587;
  box-shadow: 0 4px 12px rgba(16,245,150,0.4);
}

/* -------------------- */
/* TEXTO “By JC Data Control” */
/* -------------------- */
.developed-by-container {
    margin-top: 20px;
    z-index: 1;
  }
  .developed-by {
    font-size: 0.9rem;
    color: #444;
    margin: 0;
    transition: transform 0.2s, color 0.2s;
  }
  .developed-by a {
    color: #10F596;
    text-decoration: none;
    transition: color 0.2s;
  }
  .developed-by a:hover {
    color: #0ec587;
  }
  .developed-by:hover {
    transform: translateY(-2px);
    color: #10F596;
  }
  

/* -------------------- */
/* ALERTA DE ERROR */
/* -------------------- */
.alert-error {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #f5c6cb;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* -------------------- */
/* RESPONSIVE MOBILE */
/* -------------------- */
@media (max-width: 767.98px) {
  .login-wrapper {
    flex-direction: column;
  }
  .login-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  .login-form-container {
    order: 1;
    flex: none;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: transparent;
    position: relative;
    z-index: 1;
  }
  .login-container {
    background: rgba(255, 255, 255, 0.85);
  }
}
