/* ===========================================================================
 * Pantalla de login del sistema MPU
 * =========================================================================== */

.login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #781464 0%, #288CC8 50%, #50B4C8 100%);
  padding: 20px;
}

.login-container {
  background: white;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 860px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.login-brand {
  background: #781464;
  color: white;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.login-brand::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.login-brand::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.login-brand-logo {
  background: white;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.login-brand-logo img {
  max-width: 220px;
  height: auto;
  display: block;
}
.login-brand h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 8px 0;
  position: relative;
  z-index: 1;
}
.login-brand p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.login-form-wrap {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form-wrap h2 {
  font-size: 22px;
  color: #2c3e50;
  margin: 0 0 6px 0;
  font-weight: 600;
}
.login-form-wrap .subtitle {
  color: #888;
  font-size: 13px;
  margin: 0 0 28px 0;
}

.login-form .form-group { margin-bottom: 16px; }
.login-form label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.login-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e5ea;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  box-sizing: border-box;
}
.login-form input:focus {
  outline: none;
  border-color: #781464;
  box-shadow: 0 0 0 3px rgba(120, 20, 100, 0.1);
}

.login-btn {
  width: 100%;
  background: #781464;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.login-btn:hover { background: #5c0f4c; }
.login-btn:active { transform: translateY(1px); }

.login-error {
  background: #fee;
  color: #721c24;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  border-left: 3px solid #dc3545;
}

.login-info {
  background: #e7f1ff;
  color: #0c4a6e;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  border-left: 3px solid #288CC8;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 11px;
  color: #888;
}
.login-footer strong { color: #781464; }

/* Responsive: en pantallas pequenas, apilar */
@media (max-width: 700px) {
  .login-container {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .login-brand {
    padding: 28px 20px;
  }
  .login-brand-logo img { max-width: 160px; }
  .login-form-wrap { padding: 32px 28px; }
}
