@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #0099ff;
  --primary-dark: #007acc;
  --bg: #f5f8fd;
  --text: #0f172a;
  --muted: #6b7280;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* ===== CONTAINER ===== */
.login-wrapper {
  display: flex;
  width: 960px;
  max-width: 94vw;
  height: 600px;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* ===== LEFT IMAGE SECTION ===== */
.login-left {
  flex: 1;
  /* Color de fondo de respaldo por si la imagen no carga */
  background: linear-gradient(135deg, #0099ff 0%, #6610f2 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* IMAGEN DE FONDO ACTIVA */
.login-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Asegúrate de que tu imagen se llame así y esté en assets/img/ */
  background: url('../img/login-bg.png') no-repeat center center/cover;
  /* Ajusta este valor (0.1 a 1.0) para hacer la imagen más oscura o clara */
  opacity: 0.3;
  mix-blend-mode: overlay; /* Esto hace que se mezcle con el color de fondo */
}

.login-left h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative; /* Para que el texto quede sobre la imagen */
  z-index: 1;
}

.login-left p {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.6;
  position: relative; /* Para que el texto quede sobre la imagen */
  z-index: 1;
}

/* ===== RIGHT FORM SECTION ===== */
.login-right {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-right h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.login-error {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

/* ===== FORM ===== */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== INPUT FIELDS ===== */
.input-group {
  display: flex;
  align-items: center;
  background: #f9fbff;
  border: 1.5px solid #dbe8f5;
  border-radius: 12px;
  padding: 0 14px;
  height: 46px;
  transition: all 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.15);
}

.input-group i {
  color: var(--muted);
  font-size: 18px;
  margin-right: 8px;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 15px;
  color: var(--text);
}

/* ===== BUTTON ===== */
button {
  height: 46px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 153, 255, 0.3);
}