/* === login.css === */

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
  background-color: #f4f8fb;
  overflow-x: hidden;
}

/* Layout base */
.login-section {
  display: flex;
  height: 100vh;
  width: 100%;
  flex-direction: row;
}

/* Imagen institucional */
.left-panel {
  flex: 1;
  background: url('../img/iortpuq.jpeg') center center / cover no-repeat;
  min-height: 100%;
}

/* Panel derecho (formulario) */
.right-panel {
  background-color: #ffffff;
  width: 100%;
  max-width: 650px;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -6px 0 25px rgba(0, 0, 0, 0.08);
}

/* Card del formulario */
.login-card {
  width: 100%;
  max-width: 440px;
  padding: 30px 25px;
  border-radius: 12px;
  background: #ffffff;
}

.logo {
  max-width: 240px;
  height: auto;
  margin-bottom: 20px;
}

/* Títulos */
h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #003366;
  margin-bottom: 10px;
}

/* Campos */
.form-label {
  font-weight: 600;
  color: #333;
}

.form-control {
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
}

/* Botón */
.btn-primary {
  background-color: #003366;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #002244;
}

/* Alertas */
.alert {
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* Modal */
.modal-header {
  background-color: #003366;
  color: #fff;
}

/* Footer */
footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

/* Animaciones opcionales */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .login-section {
    flex-direction: column;
  }

  .left-panel {
    display: none !important;
  }

  .right-panel {
    width: 100%;
    max-width: none;
    box-shadow: none;
    padding: 40px 20px;
  }

  .login-card {
    padding: 20px;
  }

  .logo {
    max-width: 180px;
  }
}
