/* Reset y tipografía simple */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body, html {
  height: 100%;
  width: 100%;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.login-container {
  flex: 1;
  background: #000000; /* fondo negro elegante */
  color: #eee; /* texto claro para contraste */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 3rem;
  color: #333;
}

@font-face {
  font-family: 'MiFuentePersonalizada';
  src: url('fuente.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.login-container h2 {
  font-weight: 600;
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-family: 'MiFuentePersonalizada';
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  color: #333;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #007BFF;
  outline: none;
}

button {
  width: 100%;
  padding: 0.9rem 1rem;
  background: #007BFF;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #0056b3;
}

.error-msg {
  color: #d93025;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

.image-container {
  flex: 1;
}

.image-container img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* --- Responsive para móvil: solo login centrado y sin imagen --- */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .login-container {
    flex: none;
    width: 100%;
    height: 100vh; /* ocupa toda la pantalla */
    padding: 0;
    background: #000; /* aseguramos fondo negro */

    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;     /* centra horizontalmente */
  }

  .image-container {
    display: none; /* ocultamos imagen */
  }

  form {
    width: 100%;
    max-width: 400px; /* para que no se pase de ancho */
    padding: 0 1.5rem;
  }

  h2 {
    margin-bottom: 2rem;
  }

  input[type="text"],
  input[type="password"],
  button {
    font-size: 1.2rem;
    padding: 1rem;
    width: 100%;
  }
}
